diff options
author | Erik Johnston <erik@matrix.org> | 2020-10-22 10:11:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-22 10:11:06 +0100 |
commit | 2ac908f377ca7522019e1560c115f893e52d79a1 (patch) | |
tree | 33768a70d49f89a2eeab54e7654de5b9b18910c2 /tests/storage/test_roommember.py | |
parent | Optimise CacheDescriptor (#8594) (diff) | |
download | synapse-2ac908f377ca7522019e1560c115f893e52d79a1.tar.xz |
Don't instansiate Requester directly (#8614)
Diffstat (limited to 'tests/storage/test_roommember.py')
-rw-r--r-- | tests/storage/test_roommember.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/storage/test_roommember.py b/tests/storage/test_roommember.py index 12ccc1f53e..ff972daeaa 100644 --- a/tests/storage/test_roommember.py +++ b/tests/storage/test_roommember.py @@ -19,7 +19,7 @@ from unittest.mock import Mock from synapse.api.constants import Membership from synapse.rest.admin import register_servlets_for_client_rest_resource from synapse.rest.client.v1 import login, room -from synapse.types import Requester, UserID +from synapse.types import UserID, create_requester from tests import unittest from tests.test_utils import event_injection @@ -187,7 +187,7 @@ class CurrentStateMembershipUpdateTestCase(unittest.HomeserverTestCase): # Now let's create a room, which will insert a membership user = UserID("alice", "test") - requester = Requester(user, None, False, False, None, None) + requester = create_requester(user) self.get_success(self.room_creator.create_room(requester, {})) # Register the background update to run again. |