diff options
author | Joseph Weston <joseph@weston.cloud> | 2019-03-01 03:59:25 +0100 |
---|---|---|
committer | Joseph Weston <joseph@weston.cloud> | 2019-03-01 09:46:25 +0100 |
commit | b136ee10dff071baa3fb8895bf00d2b10f443437 (patch) | |
tree | b635513a4a607be9eff8c8a41da5935f5069ff8a /tests | |
parent | Minor docstring fixes for MatrixFederationAgent (#4765) (diff) | |
download | synapse-b136ee10dff071baa3fb8895bf00d2b10f443437.tar.xz |
Import 'admin' module rather than 'register_servlets' directly
We will later need also to import 'register_servlets' from the 'login' module, so we un-pollute the namespace now to keep the logical changes separate.
Diffstat (limited to '')
-rw-r--r-- | tests/rest/client/v1/test_admin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rest/client/v1/test_admin.py b/tests/rest/client/v1/test_admin.py index 407bf0ac4c..c926836206 100644 --- a/tests/rest/client/v1/test_admin.py +++ b/tests/rest/client/v1/test_admin.py @@ -20,14 +20,14 @@ import json from mock import Mock from synapse.api.constants import UserTypes -from synapse.rest.client.v1.admin import register_servlets +from synapse.rest.client.v1 import admin from tests import unittest class UserRegisterTestCase(unittest.HomeserverTestCase): - servlets = [register_servlets] + servlets = [admin.register_servlets] def make_homeserver(self, reactor, clock): |