mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-23 10:53:31 +00:00
Make the api.auth.Auth a Protocol
This commit is contained in:
1 parent
5d8c659373
commit
e2c8458bba
7 files changed
+464
-248
No files matched your search
@@ -18,7 +18,7 @@ import pymacaroons
|
||||
|
||||
from twisted.test.proto_helpers import MemoryReactor
|
||||
|
||||
from synapse.api.auth import Auth
|
||||
from synapse.api.auth.internal import InternalAuth
|
||||
from synapse.api.auth_blocking import AuthBlocking
|
||||
from synapse.api.constants import UserTypes
|
||||
from synapse.api.errors import (
|
||||
@@ -48,7 +48,7 @@ class AuthTestCase(unittest.HomeserverTestCase):
|
||||
# have been called by the HomeserverTestCase machinery.
|
||||
hs.datastores.main = self.store # type: ignore[union-attr]
|
||||
hs.get_auth_handler().store = self.store
|
||||
self.auth = Auth(hs)
|
||||
self.auth = InternalAuth(hs)
|
||||
|
||||
# AuthBlocking reads from the hs' config on initialization. We need to
|
||||
# modify its config instead of the hs'
|
||||
|
||||
Reference in new issue
Block a user