Skip to content

Commit

Permalink
Replace 'called_with' with 'assert_called_with'.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Feb 19, 2023
1 parent 58f9899 commit 301af23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_functools.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def test_cleanup_called_on_exception(self):
self.set_to_fail(times=calls)
retry_call(self.attempt, retries=calls, cleanup=cleanup, trap=Exception)
assert cleanup.call_count == calls
assert cleanup.called_with()
cleanup.assert_called_with()

def test_infinite_retries(self):
self.set_to_fail(times=999)
Expand Down

0 comments on commit 301af23

Please sign in to comment.