mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-22 01:14:59 -05:00
Fix bogus imports in tests (#5154)
This commit is contained in:
parent
c0e0740bef
commit
d216a36b37
1
changelog.d/5154.bugfix
Normal file
1
changelog.d/5154.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Fix bogus imports in unit tests.
|
@ -15,7 +15,7 @@
|
||||
|
||||
import json
|
||||
|
||||
from synapse.rest.admin import register_servlets
|
||||
from synapse.rest import admin
|
||||
from synapse.rest.client.v1 import directory, login, room
|
||||
from synapse.types import RoomAlias
|
||||
from synapse.util.stringutils import random_string
|
||||
@ -26,7 +26,7 @@ from tests import unittest
|
||||
class DirectoryTestCase(unittest.HomeserverTestCase):
|
||||
|
||||
servlets = [
|
||||
register_servlets,
|
||||
admin.register_servlets_for_client_rest_resource,
|
||||
directory.register_servlets,
|
||||
login.register_servlets,
|
||||
room.register_servlets,
|
||||
|
@ -20,7 +20,8 @@ from twisted.internet import defer
|
||||
|
||||
import synapse.types
|
||||
from synapse.api.errors import AuthError, SynapseError
|
||||
from synapse.rest.client.v1 import admin, login, profile, room
|
||||
from synapse.rest import admin
|
||||
from synapse.rest.client.v1 import login, profile, room
|
||||
|
||||
from tests import unittest
|
||||
|
||||
@ -161,7 +162,7 @@ class ProfileTestCase(unittest.TestCase):
|
||||
class ProfilesRestrictedTestCase(unittest.HomeserverTestCase):
|
||||
|
||||
servlets = [
|
||||
admin.register_servlets,
|
||||
admin.register_servlets_for_client_rest_resource,
|
||||
login.register_servlets,
|
||||
profile.register_servlets,
|
||||
room.register_servlets,
|
||||
|
@ -909,7 +909,7 @@ class RoomSearchTestCase(unittest.HomeserverTestCase):
|
||||
class PublicRoomsRestrictedTestCase(unittest.HomeserverTestCase):
|
||||
|
||||
servlets = [
|
||||
admin.register_servlets,
|
||||
synapse.rest.admin.register_servlets_for_client_rest_resource,
|
||||
room.register_servlets,
|
||||
login.register_servlets,
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user