We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ad9fe8 commit caf4cd3Copy full SHA for caf4cd3
tests/test_internal/test_json_schema.py
@@ -1,3 +1,5 @@
1
+import json
2
+
3
from deepdiff.diff import DeepDiff
4
5
@@ -6,6 +8,9 @@ def test_json_schema_is_up_to_date():
6
8
from bioimageio.spec.utils import get_bioimageio_json_schema
7
9
10
generated = generate_json_schema()
11
+ # encode and decode with json for exact match, e.g. json turns int into float
12
+ generated_json_roundtrip = json.loads(json.dumps(generated))
13
14
existing = get_bioimageio_json_schema()
- diff = DeepDiff(existing, generated)
15
+ diff = DeepDiff(existing, generated_json_roundtrip)
16
assert not diff, diff.pretty()
0 commit comments