Skip to content

Commit e5d5e0a

Browse files
committed
Also prevent 'tests that' from descriptions.
There aren't any currently (though one was just removed in a previous 'should' commit).
1 parent eaf06b1 commit e5d5e0a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/jsonschema_suite

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,11 @@ class SanityTests(unittest.TestCase):
185185
r"\bshould\b",
186186
message,
187187
)
188+
self.assertNotRegex(
189+
test["description"],
190+
r"(?i)\btest(s)? that\b",
191+
message,
192+
)
188193

189194
@unittest.skipIf(jsonschema is None, "Validation library not present!")
190195
def test_all_schemas_are_valid(self):

0 commit comments

Comments
 (0)