From 452169710f20a38372bdd686f79680df1215d188 Mon Sep 17 00:00:00 2001 From: Julian Berman Date: Wed, 25 Aug 2021 17:33:49 +0100 Subject: 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. --- jsonschema/tests/test_validators.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jsonschema/tests/test_validators.py b/jsonschema/tests/test_validators.py index b251782..915758f 100644 --- a/jsonschema/tests/test_validators.py +++ b/jsonschema/tests/test_validators.py @@ -1614,11 +1614,11 @@ class TestDraft3Validator(AntiDraft6LeakMixin, ValidatorTestMixin, TestCase): validator.validate("foo") def test_is_type_is_true_for_any_type(self): - self.assertTrue(self.Validator({}).is_valid(object(), {"type": "any"})) + self.assertTrue(self.Validator({"type": "any"}).is_valid(object())) def test_is_type_does_not_evade_bool_if_it_is_being_tested(self): self.assertTrue(self.Validator({}).is_type(True, "boolean")) - self.assertTrue(self.Validator({}).is_valid(True, {"type": "any"})) + self.assertTrue(self.Validator({"type": "any"}).is_valid(True)) class TestDraft4Validator(AntiDraft6LeakMixin, ValidatorTestMixin, TestCase): -- cgit v1.2.1