File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,15 @@ class SanityTests(TestCase):
83
83
except ValueError as error :
84
84
self .fail ("%s contains invalid JSON (%s)" % (path , error ))
85
85
86
+ def test_all_descriptions_have_reasonable_length (self ):
87
+ for case in cases (self .test_files ):
88
+ descript = case ["description" ]
89
+ self .assertLess (
90
+ len (descript ),
91
+ 60 ,
92
+ "%r is too long! (keep it to less than 60 chars)" % (descript ,)
93
+ )
94
+
86
95
def test_all_descriptions_are_unique (self ):
87
96
for group in groups (self .test_files ):
88
97
descriptions = {test ["description" ] for test in group ["tests" ]}
Original file line number Diff line number Diff line change 27
27
"description" : " multiple invalid matches is invalid" ,
28
28
"data" : {"foo" : " bar" , "foooooo" : " baz" },
29
29
"valid" : false
30
+ },
31
+ {
32
+ "description" : " ignores non-objects" ,
33
+ "data" : 12 ,
34
+ "valid" : true
30
35
}
31
36
]
32
37
},
33
38
{
34
- "description" : " multiple simulatneous patternProperties are validated" ,
39
+ "description" : " multiple simultaneous patternProperties are validated" ,
35
40
"schema" : {
36
41
"patternProperties" : {
37
42
"a*" : {"type" : " integer" },
You can’t perform that action at this time.
0 commit comments