summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2015-02-27 09:46:38 +0000
committerKegan Dougal <kegan@matrix.org>2015-02-27 09:46:38 +0000
commit0ebd632d39e7c493d26e0dd24876232caf2660b4 (patch)
tree65f804cd02d615793245f0d652302dd071c829a2 /tests
parentNotify appservices of invites mid-poll. (diff)
downloadsynapse-0ebd632d39e7c493d26e0dd24876232caf2660b4.tar.xz
Fix unit tests
Diffstat (limited to 'tests')
-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 7c5df5c116..5f2ef64efc 100644
--- a/tests/rest/client/v1/test_presence.py
+++ b/tests/rest/client/v1/test_presence.py
@@ -295,6 +295,9 @@ class PresenceEventStreamTestCase(unittest.TestCase):
 
         self.mock_datastore = hs.get_datastore()
         self.mock_datastore.get_app_service_by_token = Mock(return_value=None)
+        self.mock_datastore.get_app_service_by_user_id = Mock(
+            return_value=defer.succeed(None)
+        )
 
         def get_profile_displayname(user_id):
             return defer.succeed("Frank")