diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-02-11 10:29:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-11 10:29:09 -0500 |
commit | 8a33d217bd58026bc6f48938e857969fc5ed6863 (patch) | |
tree | 3a7f3032b34cf123e7dced9b2f3d5098ed4de27d /tests/rest/client/v1 | |
parent | Combine the CAS & SAML implementations for required attributes. (#9326) (diff) | |
download | synapse-8a33d217bd58026bc6f48938e857969fc5ed6863.tar.xz |
Convert some test cases to use HomeserverTestCase. (#9377)
This has the side-effect of being able to remove use of `inlineCallbacks` in the test-cases for cleaner tracebacks.
Diffstat (limited to 'tests/rest/client/v1')
-rw-r--r-- | tests/rest/client/v1/test_typing.py | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/tests/rest/client/v1/test_typing.py b/tests/rest/client/v1/test_typing.py index 38c51525a3..f6f3b9a356 100644 --- a/tests/rest/client/v1/test_typing.py +++ b/tests/rest/client/v1/test_typing.py @@ -18,8 +18,6 @@ from mock import Mock -from twisted.internet import defer - from synapse.rest.client.v1 import room from synapse.types import UserID @@ -60,32 +58,6 @@ class RoomTypingTestCase(unittest.HomeserverTestCase): hs.get_datastore().insert_client_ip = _insert_client_ip - def get_room_members(room_id): - if room_id == self.room_id: - return defer.succeed([self.user]) - else: - return defer.succeed([]) - - @defer.inlineCallbacks - def fetch_room_distributions_into( - room_id, localusers=None, remotedomains=None, ignore_user=None - ): - members = yield get_room_members(room_id) - for member in members: - if ignore_user is not None and member == ignore_user: - continue - - if hs.is_mine(member): - if localusers is not None: - localusers.add(member) - else: - if remotedomains is not None: - remotedomains.add(member.domain) - - hs.get_room_member_handler().fetch_room_distributions_into = ( - fetch_room_distributions_into - ) - return hs def prepare(self, reactor, clock, hs): |