Skip to content

Commit 4521697

Browse files
committed
Remove 2-arg-using form of is_valid from tests.
This will soon be deprecated, and these tests don't care about specifically doing things this way.
1 parent df7a4e4 commit 4521697

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jsonschema/tests/test_validators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,11 +1614,11 @@ def test_any_type_is_redefinable(self):
16141614
validator.validate("foo")
16151615

16161616
def test_is_type_is_true_for_any_type(self):
1617-
self.assertTrue(self.Validator({}).is_valid(object(), {"type": "any"}))
1617+
self.assertTrue(self.Validator({"type": "any"}).is_valid(object()))
16181618

16191619
def test_is_type_does_not_evade_bool_if_it_is_being_tested(self):
16201620
self.assertTrue(self.Validator({}).is_type(True, "boolean"))
1621-
self.assertTrue(self.Validator({}).is_valid(True, {"type": "any"}))
1621+
self.assertTrue(self.Validator({"type": "any"}).is_valid(True))
16221622

16231623

16241624
class TestDraft4Validator(AntiDraft6LeakMixin, ValidatorTestMixin, TestCase):

0 commit comments

Comments
 (0)