File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 4
4
5
5
from synapse .api .constants import EventTypes , ServerNoticeMsgType
6
6
from synapse .api .errors import ResourceLimitError
7
- from synapse .handlers .auth import AuthHandler
8
7
from synapse .server_notices .resource_limits_server_notices import (
9
8
ResourceLimitsServerNotices ,
10
9
)
13
12
from tests .utils import setup_test_homeserver
14
13
15
14
16
- class AuthHandlers (object ):
17
- def __init__ (self , hs ):
18
- self .auth_handler = AuthHandler (hs )
19
-
20
-
21
15
class TestResourceLimitsServerNotices (unittest .TestCase ):
22
16
@defer .inlineCallbacks
23
17
def setUp (self ):
24
- self .hs = yield setup_test_homeserver (self .addCleanup , handlers = None )
25
- self .hs .handlers = AuthHandlers (self .hs )
26
- self .auth_handler = self .hs .handlers .auth_handler
18
+ self .hs = yield setup_test_homeserver (self .addCleanup )
27
19
self .server_notices_sender = self .hs .get_server_notices_sender ()
28
20
29
21
# relying on [1] is far from ideal, but the only case where
You can’t perform that action at this time.
0 commit comments