Skip to content

Commit

Permalink
🐛 tests: mock.callargs has been removed since mock 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu committed Aug 28, 2023
1 parent 9be303b commit 8bf91dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def test_network_retry(self):
"Call is repeated")
# Ensure that sleep was called with the retry interval between each attempt
attempt_interval = self.sg.config.rpc_attempt_interval / 1000.0
calls = [mock.callargs(((attempt_interval,), {}))]
calls = [mock.call(attempt_interval)]
calls *= (self.sg.config.max_rpc_attempts - 1)
self.assertTrue(
mock_sleep.call_args_list == calls,
Expand Down

0 comments on commit 8bf91dc

Please sign in to comment.