Skip to content

Commit

Permalink
chore: improve verbose in JSON Schema to search mapper test
Browse files Browse the repository at this point in the history
Signed-off-by: Cesar Berrospi Ramis <75900930+ceberam@users.noreply.github.com>
  • Loading branch information
ceberam committed Sep 25, 2024
1 parent 94dccbc commit 5cf6f1f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/test_json_schema_to_search_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ def test_json_schema_to_search_mapper_0():

diff = jsondiff.diff(index_ref, index_def)
# print(json.dumps(index_def, indent=2))
print(diff)
assert index_def == index_ref
assert (
index_def == index_ref
), f"Error in search mappings of ExportedCCSDocument. Difference:\n{json.dumps(diff, indent=2)}"


def test_json_schema_to_search_mapper_1():
Expand Down Expand Up @@ -99,6 +100,7 @@ def test_json_schema_to_search_mapper_1():
index_ref = _load(filename)

diff = jsondiff.diff(index_ref, index_def)
# print(json.dumps(index_def,indent=2))
print(diff)
assert index_def == index_ref
# print(json.dumps(index_def, indent=2))
assert (
index_def == index_ref
), f"Error in search mappings of Record. Difference: {diff}"

0 comments on commit 5cf6f1f

Please sign in to comment.