summary refs log tree commit diff
path: root/tests/rest/client
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-08-25 14:34:56 +0100
committerErik Johnston <erik@matrix.org>2017-08-25 14:34:56 +0100
commitbf81f3cf2c3e5b1d96953f3116c22aee05fb79b3 (patch)
treea87f982bf6763c263d45db6fcbef6cb9813d9015 /tests/rest/client
parentAdd remote profile cache (diff)
downloadsynapse-bf81f3cf2c3e5b1d96953f3116c22aee05fb79b3.tar.xz
Split out profile handler to fix tests
Diffstat (limited to 'tests/rest/client')
-rw-r--r--tests/rest/client/v1/test_profile.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/rest/client/v1/test_profile.py b/tests/rest/client/v1/test_profile.py
index 1e95e97538..dddcf51b69 100644
--- a/tests/rest/client/v1/test_profile.py
+++ b/tests/rest/client/v1/test_profile.py
@@ -46,6 +46,7 @@ class ProfileTestCase(unittest.TestCase):
             resource_for_client=self.mock_resource,
             federation=Mock(),
             replication_layer=Mock(),
+            profile_handler=self.mock_handler
         )
 
         def _get_user_by_req(request=None, allow_guest=False):
@@ -53,8 +54,6 @@ class ProfileTestCase(unittest.TestCase):
 
         hs.get_v1auth().get_user_by_req = _get_user_by_req
 
-        hs.get_handlers().profile_handler = self.mock_handler
-
         profile.register_servlets(hs, self.mock_resource)
 
     @defer.inlineCallbacks