File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -1103,26 +1103,22 @@ def test_invalid_properties(self):
1103
1103
with self .assertRaises (exceptions .SchemaError ):
1104
1104
self .Validator .check_schema ({"properties" : {"test" : object ()}})
1105
1105
1106
- def test_invalid_pattern (self ):
1107
- with self .assertRaises (SchemaError ):
1108
- self .Validator .check_schema ({"pattern" : "\q" })
1109
-
1110
1106
def test_minItems_invalid_string (self ):
1111
- with self .assertRaises (SchemaError ):
1107
+ with self .assertRaises (exceptions . SchemaError ):
1112
1108
# needs to be an integer
1113
1109
self .Validator .check_schema ({"minItems" : "1" })
1114
1110
1115
1111
1116
1112
class InvalidRegexMixin (object ):
1117
1113
def test_invalid_patternProperty (self ):
1118
- with self .assertRaises (SchemaError ):
1114
+ with self .assertRaises (exceptions . SchemaError ):
1119
1115
self .Validator .check_schema (
1120
- {"patternProperties" :{"\q" : {"type" : "number" }}})
1116
+ {"patternProperties" :{"\q" : {"type" : "number" }}},
1117
+ )
1121
1118
1122
- def test_minItems_invalid_string (self ):
1119
+ def test_invalid_pattern (self ):
1123
1120
with self .assertRaises (exceptions .SchemaError ):
1124
- # needs to be an integer
1125
- self .Validator .check_schema ({"minItems" : "1" })
1121
+ self .Validator .check_schema ({"pattern" : "\q" })
1126
1122
1127
1123
def test_enum_allows_empty_arrays (self ):
1128
1124
"""
You can’t perform that action at this time.
0 commit comments