mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-05-05 04:24:56 -04:00
move threepid checker to config, add missing yields
This commit is contained in:
parent
e8e540630e
commit
0b01281e77
6 changed files with 41 additions and 21 deletions
|
@ -26,6 +26,7 @@ from twisted.internet import defer, reactor
|
|||
|
||||
from synapse.api.constants import EventTypes
|
||||
from synapse.api.errors import CodeMessageException, cs_error
|
||||
from synapse.config.server import ServerConfig
|
||||
from synapse.federation.transport import server
|
||||
from synapse.http.server import HttpServer
|
||||
from synapse.server import HomeServer
|
||||
|
@ -158,6 +159,11 @@ def setup_test_homeserver(
|
|||
# background, which upsets the test runner.
|
||||
config.update_user_directory = False
|
||||
|
||||
def is_threepid_reserved(threepid):
|
||||
return ServerConfig.is_threepid_reserved(config, threepid)
|
||||
|
||||
config.is_threepid_reserved.side_effect = is_threepid_reserved
|
||||
|
||||
config.use_frozen_dicts = True
|
||||
config.ldap_enabled = False
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue