From 68f332c75892b1943c9b9ebf619d6329b42f2fdf Mon Sep 17 00:00:00 2001 From: sonny Date: Sat, 29 May 2021 16:53:14 +0200 Subject: [PATCH] Use any_order=True for asserting asynchronous requests --- transip_client/tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/transip_client/tests.py b/transip_client/tests.py index 4260ac0..30098e7 100644 --- a/transip_client/tests.py +++ b/transip_client/tests.py @@ -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( {