Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fix bogus imports in tests #5154

Merged
merged 3 commits into from
May 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/5154.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix bogus imports in unit tests.
4 changes: 2 additions & 2 deletions tests/rest/client/v1/test_directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -26,7 +26,7 @@
class DirectoryTestCase(unittest.HomeserverTestCase):

servlets = [
register_servlets,
admin.register_servlets_for_client_rest_resource,
directory.register_servlets,
login.register_servlets,
room.register_servlets,
Expand Down
5 changes: 3 additions & 2 deletions tests/rest/client/v1/test_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@

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

Expand Down Expand Up @@ -161,7 +162,7 @@ def test_set_my_avatar(self):
class ProfilesRestrictedTestCase(unittest.HomeserverTestCase):

servlets = [
admin.register_servlets,
admin.register_servlets_for_client_rest_resource,
login.register_servlets,
profile.register_servlets,
room.register_servlets,
Expand Down
2 changes: 1 addition & 1 deletion tests/rest/client/v1/test_rooms.py
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ def test_include_context(self):
class PublicRoomsRestrictedTestCase(unittest.HomeserverTestCase):

servlets = [
admin.register_servlets,
synapse.rest.admin.register_servlets_for_client_rest_resource,
room.register_servlets,
login.register_servlets,
]
Expand Down