@@ -66,6 +66,11 @@ def test_boolean_true_is_valid_schema_and_resolvable(_):
6666 {"type" : "an unknown type" },
6767 {"allOf" : [{"type" : "boolean" }, {"const" : None }]},
6868 {"allOf" : [{"type" : "boolean" }, {"enum" : [None ]}]},
69+ {
70+ "$schema" : "http://json-schema.org/draft-07/schema#" ,
71+ "maximum" : 10 ,
72+ "exclusiveMaximum" : True ,
73+ },
6974 ],
7075)
7176def test_invalid_schemas_raise (schema ):
@@ -88,6 +93,19 @@ def test_invalid_regex_emit_warning(schema):
8893 from_schema (schema ).validate ()
8994
9095
96+ @given (
97+ from_schema (
98+ {
99+ "$schema" : "http://json-schema.org/draft-04/schema#" ,
100+ "maximum" : 10 ,
101+ "exclusiveMaximum" : True ,
102+ }
103+ )
104+ )
105+ def test_can_generate_with_explicit_schema_version (_ ):
106+ pass
107+
108+
91109INVALID_SCHEMAS = {
92110 # Empty list for requires, which is invalid
93111 "Release Drafter configuration file" ,
@@ -205,10 +223,8 @@ def to_name_params(corpus):
205223 continue
206224 if n in UNSUPPORTED_SCHEMAS :
207225 continue
208- elif n in SLOW_SCHEMAS :
226+ elif n in SLOW_SCHEMAS | FLAKY_SCHEMAS :
209227 yield pytest .param (n , marks = pytest .mark .skip )
210- elif n in FLAKY_SCHEMAS :
211- yield pytest .param (n , marks = pytest .mark .xfail (strict = False ))
212228 else :
213229 if isinstance (corpus [n ], dict ) and "$schema" in corpus [n ]:
214230 jsonschema .validators .validator_for (corpus [n ]).check_schema (corpus [n ])
0 commit comments