Use any_order=True for asserting asynchronous requests

This commit is contained in:
sonny 2021-05-29 16:53:14 +02:00
parent 9bbd306ae5
commit 68f332c758

View file

@ -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(
{