File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1040,6 +1040,13 @@ def test_invalid_pattern(self):
1040
1040
with self .assertRaises (SchemaError ):
1041
1041
self .Validator .check_schema ({"pattern" : "\q" })
1042
1042
1043
+ def test_minItems_invalid_string (self ):
1044
+ with self .assertRaises (SchemaError ):
1045
+ # needs to be an integer
1046
+ self .Validator .check_schema ({"minItems" : "1" })
1047
+
1048
+
1049
+ class InvalidRegexMixin (object ):
1043
1050
def test_invalid_patternProperty (self ):
1044
1051
with self .assertRaises (SchemaError ):
1045
1052
self .Validator .check_schema (
@@ -1051,6 +1058,14 @@ def test_minItems_invalid_string(self):
1051
1058
self .Validator .check_schema ({"minItems" : "1" })
1052
1059
1053
1060
1061
+ class TestDraft6InvalidRegex (InvalidRegexMixin , object ):
1062
+ Validator = validators .Draft6Validator
1063
+
1064
+
1065
+ class TestDraft7InvalidRegex (InvalidRegexMixin , object ):
1066
+ Validator = validators .Draft7Validator
1067
+
1068
+
1054
1069
class ValidatorTestMixin (MetaSchemaTestsMixin , object ):
1055
1070
def test_valid_instances_are_valid (self ):
1056
1071
schema , instance = self .valid
You can’t perform that action at this time.
0 commit comments