summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2016-09-08 14:26:47 +0100
committerGitHub <noreply@github.com>2016-09-08 14:26:47 +0100
commit2117c409a01231de146eb38330e3941ea2564e4a (patch)
tree806152a98d66013b94882c85cb1cb6129be62e78 /tests
parentLog delta files we're applying (diff)
parentMerge branch 'develop' into markjh/direct_to_device_federation (diff)
downloadsynapse-2117c409a01231de146eb38330e3941ea2564e4a.tar.xz
Merge pull request #1074 from matrix-org/markjh/direct_to_device_federation
Send device messages over federation
Diffstat (limited to 'tests')
-rw-r--r--tests/handlers/test_typing.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/handlers/test_typing.py b/tests/handlers/test_typing.py
index b2957eef9f..ea1f0f7c33 100644
--- a/tests/handlers/test_typing.py
+++ b/tests/handlers/test_typing.py
@@ -121,6 +121,14 @@ class TypingNotificationsTestCase(unittest.TestCase):
 
         self.auth.check_joined_room = check_joined_room
 
+        self.datastore.get_to_device_stream_token = lambda: 0
+        self.datastore.get_new_device_msgs_for_remote = (
+            lambda *args, **kargs: ([], 0)
+        )
+        self.datastore.delete_device_msgs_for_remote = (
+            lambda *args, **kargs: None
+        )
+
         # Some local users to test with
         self.u_apple = UserID.from_string("@apple:test")
         self.u_banana = UserID.from_string("@banana:test")