diff options
author | Mark Haines <mark.haines@matrix.org> | 2016-09-06 18:30:03 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2016-09-06 18:30:03 +0100 |
commit | 74cbfdc7dec17b5037cbde7af1e546674246b970 (patch) | |
tree | 99be7b307e2f6a0b1ab4b64d2eec267fd74eed96 /tests/handlers/test_typing.py | |
parent | Send device messages over federation (diff) | |
download | synapse-74cbfdc7dec17b5037cbde7af1e546674246b970.tar.xz |
Fix unit tests
Diffstat (limited to 'tests/handlers/test_typing.py')
-rw-r--r-- | tests/handlers/test_typing.py | 8 |
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") |