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 df7a4e4 commit 4521697Copy full SHA for 4521697
jsonschema/tests/test_validators.py
@@ -1614,11 +1614,11 @@ def test_any_type_is_redefinable(self):
1614
validator.validate("foo")
1615
1616
def test_is_type_is_true_for_any_type(self):
1617
- self.assertTrue(self.Validator({}).is_valid(object(), {"type": "any"}))
+ self.assertTrue(self.Validator({"type": "any"}).is_valid(object()))
1618
1619
def test_is_type_does_not_evade_bool_if_it_is_being_tested(self):
1620
self.assertTrue(self.Validator({}).is_type(True, "boolean"))
1621
- self.assertTrue(self.Validator({}).is_valid(True, {"type": "any"}))
+ self.assertTrue(self.Validator({"type": "any"}).is_valid(True))
1622
1623
1624
class TestDraft4Validator(AntiDraft6LeakMixin, ValidatorTestMixin, TestCase):
0 commit comments