diff options
author | Mark Haines <mark.haines@matrix.org> | 2015-05-20 13:22:18 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2015-05-20 13:22:18 +0100 |
commit | 8eca5bd50abc9deb3cd428f3f6b3b8fbeb8bdee1 (patch) | |
tree | 65d1a7de2f0b8867d3ac40576833a85764591dd2 /tests/rest | |
parent | Clean up the presence_list checking logic a bit (diff) | |
download | synapse-8eca5bd50abc9deb3cd428f3f6b3b8fbeb8bdee1.tar.xz |
Fix the presence tests
Diffstat (limited to 'tests/rest')
-rw-r--r-- | tests/rest/client/v1/test_presence.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/rest/client/v1/test_presence.py b/tests/rest/client/v1/test_presence.py index 29c0038f06..8f3df92418 100644 --- a/tests/rest/client/v1/test_presence.py +++ b/tests/rest/client/v1/test_presence.py @@ -295,6 +295,9 @@ class PresenceEventStreamTestCase(unittest.TestCase): else: return [] hs.handlers.room_member_handler.get_joined_rooms_for_user = get_rooms_for_user + hs.handlers.room_member_handler.get_room_members = ( + lambda r: self.room_members if r == "a-room" else [] + ) self.mock_datastore = hs.get_datastore() self.mock_datastore.get_app_service_by_token = Mock(return_value=None) |