diff options
author | Julian Berman <Julian@GrayVines.com> | 2021-08-25 17:33:49 +0100 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2021-08-25 17:54:59 +0100 |
commit | 452169710f20a38372bdd686f79680df1215d188 (patch) | |
tree | dd80e71d8ee8e0a101de98727dc340380e148e31 | |
parent | df7a4e453ae4ec28417e8a21b9722b2135ecf301 (diff) | |
download | jsonschema-452169710f20a38372bdd686f79680df1215d188.tar.gz |
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.
-rw-r--r-- | jsonschema/tests/test_validators.py | 4 |
1 files 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): |