summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-05-21 15:25:54 +0100
committerErik Johnston <erik@matrix.org>2015-05-21 15:25:54 +0100
commit4fb858d90a179f5c49f7c7773421db9267251b6c (patch)
tree33f445ee5afd305bb5d468c7d5a3aaf1f40198a0 /tests
parentMerge branch 'erikj/join_perf' of github.com:matrix-org/synapse into erikj/ba... (diff)
parentOops, get_rooms_for_user returns a namedtuple, not a room_id (diff)
downloadsynapse-4fb858d90a179f5c49f7c7773421db9267251b6c.tar.xz
Merge branch 'develop' of github.com:matrix-org/synapse into erikj/backfill_fixes
Diffstat (limited to 'tests')
-rw-r--r--tests/rest/client/v1/test_presence.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/rest/client/v1/test_presence.py b/tests/rest/client/v1/test_presence.py
index 29c0038f06..21f42b3d3e 100644
--- a/tests/rest/client/v1/test_presence.py
+++ b/tests/rest/client/v1/test_presence.py
@@ -29,6 +29,8 @@ from synapse.rest.client.v1 import events
 from synapse.types import UserID
 from synapse.util.async import run_on_reactor
 
+from collections import namedtuple
+
 
 OFFLINE = PresenceState.OFFLINE
 UNAVAILABLE = PresenceState.UNAVAILABLE
@@ -302,7 +304,10 @@ class PresenceEventStreamTestCase(unittest.TestCase):
             return_value=defer.succeed(None)
         )
         self.mock_datastore.get_rooms_for_user = (
-            lambda u: get_rooms_for_user(UserID.from_string(u))
+            lambda u: [
+                namedtuple("Room", "room_id")(r)
+                for r in get_rooms_for_user(UserID.from_string(u))
+            ]
         )
 
         def get_profile_displayname(user_id):