summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2021-12-10 15:39:12 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2021-12-10 15:39:12 +0000
commitb541ec58f2c73a8681c7033d5919ff286a0104e5 (patch)
tree6b4ad20de2ac1a6a3b9ae7d3a0d6b8f1a8cb0679 /tests
parentSquash into "and use everywhere" (diff)
downloadsynapse-b541ec58f2c73a8681c7033d5919ff286a0104e5.tar.xz
Update reset device list mock before starting tests
Diffstat (limited to 'tests')
-rw-r--r--tests/handlers/test_appservice.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/handlers/test_appservice.py b/tests/handlers/test_appservice.py

index 42b2de0927..4dd05979dd 100644 --- a/tests/handlers/test_appservice.py +++ b/tests/handlers/test_appservice.py
@@ -373,6 +373,9 @@ class ApplicationServicesHandlerSendEventsTestCase(unittest.HomeserverTestCase): "exclusive_as_user", "password", self.exclusive_as_user_device_id ) + # Ensure that the mock is reset after creating devices (and thus updating device lists) + self.send_mock.reset_mock() + @unittest.override_config( {"experimental_features": {"msc2409_to_device_messages_enabled": True}} )