Skip to content

Commit

Permalink
fix deepdiff usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariana Barzinpour committed Dec 23, 2024
1 parent e0be41b commit 72f260e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,12 @@ def clean_offset(offset: str):
)
if "dictionary_item_added" in doc_diffs:
out.append("Added fields:")
for offset in doc_diffs.tree["dictionary_item_added"].items:
for offset in doc_diffs.tree["dictionary_item_added"]:
offset: DiffLevel
out.append(f" {clean_offset(offset.path())} = {offset.t2!r}")
if "dictionary_item_removed" in doc_diffs:
out.append("Removed fields:")
for offset in doc_diffs.tree["dictionary_item_removed"].items:
for offset in doc_diffs.tree["dictionary_item_removed"]:
offset: DiffLevel
out.append(f" {clean_offset(offset.path())} = {offset.t1!r}")
# Anything we missed from the (sometimes changing) diff api?
Expand Down

0 comments on commit 72f260e

Please # to comment.