Use any_order=True for asserting asynchronous requests
This commit is contained in:
parent
9bbd306ae5
commit
68f332c758
1 changed files with 2 additions and 1 deletions
|
|
@ -357,7 +357,8 @@ class RunTestCase(TestCase):
|
|||
call().json(),
|
||||
]
|
||||
|
||||
self.mocked_get.assert_has_calls(expected_calls)
|
||||
# use any_order because of the asynchronous requests
|
||||
self.mocked_get.assert_has_calls(expected_calls, any_order=True)
|
||||
|
||||
expected_json = json.dumps(
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue