Skip to content

Commit

Permalink
Remove deprecated pytest_funcarg__
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Feb 19, 2020
1 parent a231d42 commit f1cd04a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openlibrary/records/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
def pytest_funcarg__compare_results(request):
def compare_results(request):
"""Returns a function to compare two objects d1 an d2 recursively
skipping the 'key', "last_modified" and "revision" keys if
present"""
def compare_results(d1, d2):
def _compare_results(d1, d2):

for i in ["revision", "last_modified", "key"]:
if i in d1: d1.pop(i)
Expand Down Expand Up @@ -37,4 +37,4 @@ def compare_results(d1, d2):
return False

# compare_results.depth = 0
return compare_results
return _compare_results

0 comments on commit f1cd04a

Please sign in to comment.