Skip to content

Commit 77a9d3a

Browse files
author
Mathieu
committed
🐛 tests: mock.callargs has been removed since mock 1.0.1
1 parent ffa845a commit 77a9d3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def test_network_retry(self):
327327
"Call is repeated")
328328
# Ensure that sleep was called with the retry interval between each attempt
329329
attempt_interval = self.sg.config.rpc_attempt_interval / 1000.0
330-
calls = [mock.callargs(((attempt_interval,), {}))]
330+
calls = [mock.call(attempt_interval)]
331331
calls *= (self.sg.config.max_rpc_attempts - 1)
332332
self.assertTrue(
333333
mock_sleep.call_args_list == calls,

0 commit comments

Comments
 (0)