summary refs log tree commit diff
path: root/tests/test_state.py
diff options
context:
space:
mode:
authorQuentin Gliech <quenting@element.io>2022-06-17 14:48:55 +0200
committerPatrick Cloke <clokep@users.noreply.github.com>2023-05-30 09:43:06 -0400
commite2c8458bba5ab20f84c93a6c68e293b2d304cdc0 (patch)
treed837e4ce681352140dc1a8d4806c3ecb397d3e96 /tests/test_state.py
parentRemove unused `FederationServer.__str__` override (#15690) (diff)
downloadsynapse-e2c8458bba5ab20f84c93a6c68e293b2d304cdc0.tar.xz
Make the api.auth.Auth a Protocol
Diffstat (limited to '')
-rw-r--r--tests/test_state.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_state.py b/tests/test_state.py
index ddf59916b1..7a49b87953 100644
--- a/tests/test_state.py
+++ b/tests/test_state.py
@@ -28,7 +28,7 @@ from unittest.mock import Mock
 
 from twisted.internet import defer
 
-from synapse.api.auth import Auth
+from synapse.api.auth.internal import InternalAuth
 from synapse.api.constants import EventTypes, Membership
 from synapse.api.room_versions import RoomVersions
 from synapse.events import EventBase, make_event_from_dict
@@ -240,7 +240,7 @@ class StateTestCase(unittest.TestCase):
         hs.get_macaroon_generator.return_value = MacaroonGenerator(
             clock, "tesths", b"verysecret"
         )
-        hs.get_auth.return_value = Auth(hs)
+        hs.get_auth.return_value = InternalAuth(hs)
         hs.get_state_resolution_handler = lambda: StateResolutionHandler(hs)
         hs.get_storage_controllers.return_value = storage_controllers