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

Commit

Permalink
Fix bogus imports in tests (#5154)
Browse files Browse the repository at this point in the history
  • Loading branch information
babolivier authored May 8, 2019
1 parent c0e0740 commit d216a36
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
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

0 comments on commit d216a36

Please sign in to comment.