Skip to content

Commit

Permalink
Refactored some tests utils
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpro2022 committed Dec 9, 2023
1 parent 8b4197a commit 36c0f3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def compare(left, right) -> None:
def clean(item) -> dict:
wanted = '_sa_instance_state'
d = vars(item).copy()
if hasattr(d, wanted):
if wanted in d:
d.pop(wanted)
return d

Expand Down

0 comments on commit 36c0f3c

Please sign in to comment.