summary refs log tree commit diff
path: root/tests/utils.py
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2014-09-29 18:37:28 +0100
committerPaul "LeoNerd" Evans <paul@matrix.org>2014-09-29 18:37:28 +0100
commitdca75a08ba5e64554f22813bd0a0356760a1be25 (patch)
treecb28d1e16cc825d4b88bc814e9e6ea1b34783f15 /tests/utils.py
parentExtended docs about the registration/login flows (diff)
parentAdd a 'Redactions' section. (diff)
downloadsynapse-dca75a08ba5e64554f22813bd0a0356760a1be25.tar.xz
Merge remote-tracking branch 'origin/develop' into develop
Diffstat (limited to 'tests/utils.py')
-rw-r--r--tests/utils.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/utils.py b/tests/utils.py
index bb8e9964dd..e7c4bc4cad 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -167,7 +167,11 @@ class MemoryDataStore(object):
 
     def get_user_by_token(self, token):
         try:
-            return self.tokens_to_users[token]
+            return {
+                "name": self.tokens_to_users[token],
+                "admin": 0,
+                "device_id": None,
+            }
         except:
             raise StoreError(400, "User does not exist.")
 
@@ -264,6 +268,9 @@ class MemoryDataStore(object):
     def get_ops_levels(self, room_id):
         return defer.succeed((5, 5, 5))
 
+    def insert_client_ip(self, user, device_id, access_token, ip, user_agent):
+        return defer.succeed(None)
+
 
 def _format_call(args, kwargs):
     return ", ".join(