We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb75153 commit fad645fCopy full SHA for fad645f
jsonschema/tests/test_types.py
@@ -190,3 +190,8 @@ def test_object_extensions_can_handle_custom_validators(self):
190
191
with self.assertRaises(ValidationError):
192
validator.validate(Point(x="not an integer", y=5))
193
+
194
+ def test_unknown_type(self):
195
+ with self.assertRaises(UnknownType) as e:
196
+ Draft4Validator({}).is_type(12, "some unknown type")
197
+ self.assertIn("'some unknown type'", str(e.exception))
0 commit comments