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.
pull/4772/head
Joseph Weston 2019-03-01 03:59:25 +01:00
parent ac61b45a75
commit b136ee10df
1 changed files with 2 additions and 2 deletions

View File

@ -20,14 +20,14 @@ import json
from mock import Mock from mock import Mock
from synapse.api.constants import UserTypes 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 from tests import unittest
class UserRegisterTestCase(unittest.HomeserverTestCase): class UserRegisterTestCase(unittest.HomeserverTestCase):
servlets = [register_servlets] servlets = [admin.register_servlets]
def make_homeserver(self, reactor, clock): def make_homeserver(self, reactor, clock):