diff options
author | Mark Haines <mjark@negativecurvature.net> | 2016-05-31 14:31:19 +0100 |
---|---|---|
committer | Mark Haines <mjark@negativecurvature.net> | 2016-05-31 14:31:19 +0100 |
commit | 014e0799f90b67e29fa7d1fcb7938e0a0c6b8617 (patch) | |
tree | e72ab5618420cd31c55493ed56f3e781c6eb1078 /tests/handlers/test_appservice.py | |
parent | Merge pull request #802 from matrix-org/dbkr/split_room_list_handler (diff) | |
parent | Move the AS handler out of the Handlers object. (diff) | |
download | synapse-014e0799f90b67e29fa7d1fcb7938e0a0c6b8617.tar.xz |
Merge pull request #803 from matrix-org/markjh/liberate_appservice_handler
Move the AS handler out of the Handlers object.
Diffstat (limited to 'tests/handlers/test_appservice.py')
-rw-r--r-- | tests/handlers/test_appservice.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/handlers/test_appservice.py b/tests/handlers/test_appservice.py index 7ddbbb9b4a..a884c95f8d 100644 --- a/tests/handlers/test_appservice.py +++ b/tests/handlers/test_appservice.py @@ -30,9 +30,9 @@ class AppServiceHandlerTestCase(unittest.TestCase): self.mock_scheduler = Mock() hs = Mock() hs.get_datastore = Mock(return_value=self.mock_store) - self.handler = ApplicationServicesHandler( - hs, self.mock_as_api, self.mock_scheduler - ) + hs.get_application_service_api = Mock(return_value=self.mock_as_api) + hs.get_application_service_scheduler = Mock(return_value=self.mock_scheduler) + self.handler = ApplicationServicesHandler(hs) @defer.inlineCallbacks def test_notify_interested_services(self): |