Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 60a291a

Browse files
committed
Update reset device list mock before starting tests
1 parent f1a31c4 commit 60a291a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/handlers/test_appservice.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,9 @@ def prepare(self, reactor, clock, hs):
373373
"exclusive_as_user", "password", self.exclusive_as_user_device_id
374374
)
375375

376+
# Ensure that the mock is reset after creating devices (and thus updating device lists)
377+
self.send_mock.reset_mock()
378+
376379
@unittest.override_config(
377380
{"experimental_features": {"msc2409_to_device_messages_enabled": True}}
378381
)

0 commit comments

Comments
 (0)