diff options
| author | natsuoto <[email protected]> | 2026-07-15 18:12:42 +0530 |
|---|---|---|
| committer | natsuoto <[email protected]> | 2026-07-15 18:12:42 +0530 |
| commit | cf4a4ea68eca91aa044556806d3d91369182702c (patch) | |
| tree | 2daa50e0f80eda81ec08a4174be56f7ebdc78825 /tests/serialize | |
| parent | 93371d459ad47a46310f729950ec383372cd2706 (diff) | |
| download | edify-cf4a4ea68eca91aa044556806d3d91369182702c.tar.xz edify-cf4a4ea68eca91aa044556806d3d91369182702c.zip | |
chore: codebase-wide rule audit — eliminate Any/object where non-protocol, hoist in-function imports, rename compound/folder-repeat files, replace generic-exception raises, bind chained comprehensions, strip __init__ docstrings, remove pragmas
Diffstat (limited to 'tests/serialize')
| -rw-r--r-- | tests/serialize/errors.test.py | 5 |
1 files changed, 3 insertions, 2 deletions
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]") |
