summary refs log tree commit diff
path: root/tests/rest/client
diff options
context:
space:
mode:
authorDaniel Wagner-Hall <daniel@matrix.org>2015-11-12 16:45:28 +0000
committerDaniel Wagner-Hall <daniel@matrix.org>2015-11-12 16:45:28 +0000
commit468a2ed4ecd06b208611d3b44cd588a184efdfec (patch)
treedde8e622532a69e31ec1b127e392f006eb35e9b4 /tests/rest/client
parentFix an issue with ignoring power_level changes on divergent graphs (diff)
downloadsynapse-468a2ed4ecd06b208611d3b44cd588a184efdfec.tar.xz
Return non-room events from guest /events calls
Diffstat (limited to 'tests/rest/client')
-rw-r--r--tests/rest/client/v1/test_presence.py3
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 7f29d73d95..8581796f72 100644
--- a/tests/rest/client/v1/test_presence.py
+++ b/tests/rest/client/v1/test_presence.py
@@ -321,6 +321,9 @@ class PresenceEventStreamTestCase(unittest.TestCase):
         hs.handlers.room_member_handler.get_room_members = (
             lambda r: self.room_members if r == "a-room" else []
         )
+        hs.handlers.room_member_handler._filter_events_for_client = (
+            lambda user_id, events, **kwargs: events
+        )
 
         self.mock_datastore = hs.get_datastore()
         self.mock_datastore.get_app_service_by_token = Mock(return_value=None)