We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 770c0a0 commit 5b0e318Copy full SHA for 5b0e318
tests.py
@@ -642,6 +642,13 @@ def test_string_types_deprecated(self):
642
validate("foo", {"type" : "string"}, string_types=(unicode,))
643
self.assertEqual(len(w), 1)
644
645
+ def test_schema_error_errors(self):
646
+ try:
647
+ validate({}, { "properties": { "additionalProperties": False } }, stop_on_error=False)
648
+ except SchemaError as e:
649
+ self.assertGreater(len(e.errors), 0)
650
+ else:
651
+ raise AssertionError("Expected SchemaError, got nothing")
652
653
class TestIgnorePropertiesForIrrelevantTypes(unittest.TestCase):
654
def test_minimum(self):
0 commit comments