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

Commit 90999a2

Browse files
committed
Update reset device list mock before starting tests
1 parent df589e9 commit 90999a2

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
@@ -409,6 +409,9 @@ def prepare(self, reactor, clock, hs):
409409
"exclusive_as_user", "password", self.exclusive_as_user_device_id
410410
)
411411

412+
# Ensure that the mock is reset after creating devices (and thus updating device lists)
413+
self.send_mock.reset_mock()
414+
412415
@unittest.override_config(
413416
{"experimental_features": {"msc2409_to_device_messages_enabled": True}}
414417
)

0 commit comments

Comments
 (0)