diff options
author | Erik Johnston <erik@matrix.org> | 2017-08-25 14:34:56 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-08-25 14:34:56 +0100 |
commit | bf81f3cf2c3e5b1d96953f3116c22aee05fb79b3 (patch) | |
tree | a87f982bf6763c263d45db6fcbef6cb9813d9015 /tests/handlers/test_profile.py | |
parent | Add remote profile cache (diff) | |
download | synapse-bf81f3cf2c3e5b1d96953f3116c22aee05fb79b3.tar.xz |
Split out profile handler to fix tests
Diffstat (limited to 'tests/handlers/test_profile.py')
-rw-r--r-- | tests/handlers/test_profile.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/handlers/test_profile.py b/tests/handlers/test_profile.py index 2a203129ca..a5f47181d7 100644 --- a/tests/handlers/test_profile.py +++ b/tests/handlers/test_profile.py @@ -62,8 +62,6 @@ class ProfileTestCase(unittest.TestCase): self.ratelimiter = hs.get_ratelimiter() self.ratelimiter.send_message.return_value = (True, 0) - hs.handlers = ProfileHandlers(hs) - self.store = hs.get_datastore() self.frank = UserID.from_string("@1234ABCD:test") @@ -72,7 +70,7 @@ class ProfileTestCase(unittest.TestCase): yield self.store.create_profile(self.frank.localpart) - self.handler = hs.get_handlers().profile_handler + self.handler = hs.get_profile_handler() @defer.inlineCallbacks def test_get_my_name(self): |