From cf4a4ea68eca91aa044556806d3d91369182702c Mon Sep 17 00:00:00 2001 From: natsuoto <279971144+natsuoto@users.noreply.github.com> Date: Wed, 15 Jul 2026 18:12:42 +0530 Subject: =?UTF-8?q?chore:=20codebase-wide=20rule=20audit=20=E2=80=94=20eli?= =?UTF-8?q?minate=20Any/object=20where=20non-protocol,=20hoist=20in-functi?= =?UTF-8?q?on=20imports,=20rename=20compound/folder-repeat=20files,=20repl?= =?UTF-8?q?ace=20generic-exception=20raises,=20bind=20chained=20comprehens?= =?UTF-8?q?ions,=20strip=20=5F=5Finit=5F=5F=20docstrings,=20remove=20pragm?= =?UTF-8?q?as?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/serialize/errors.test.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/serialize/errors.test.py') diff --git a/tests/serialize/errors.test.py b/tests/serialize/errors.test.py index 68adaac..7670af4 100644 --- a/tests/serialize/errors.test.py +++ b/tests/serialize/errors.test.py @@ -8,6 +8,7 @@ from edify import Pattern from edify.errors.serialize import ( IncompatibleSchemaVersionError, MissingSchemaKeyError, + NonObjectJSONPayloadError, UnknownElementKindError, ) @@ -51,8 +52,8 @@ def test_bad_json_string_raises_decode_error(): Pattern.from_json("{not-valid-json}") -def test_non_object_json_payload_raises_type_error(): - with pytest.raises(TypeError, match="canonical JSON payload must be an object"): +def test_non_object_json_payload_raises_non_object_json_payload_error(): + with pytest.raises(NonObjectJSONPayloadError, match="canonical JSON payload must be an object"): Pattern.from_json("[1, 2, 3]") -- cgit v1.2.3