summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorNeil Johnson <neil@matrix.org>2018-08-31 17:11:11 +0100
committerNeil Johnson <neil@matrix.org>2018-08-31 17:11:11 +0100
commit0b01281e77aee7e69925f36dbb6a798772a98a45 (patch)
treeda400c68b3eca4d6db8ce3ddaa14921c1d66d2a3 /tests
parentfix reference to is_threepid_reserved (diff)
downloadsynapse-0b01281e77aee7e69925f36dbb6a798772a98a45.tar.xz
move threepid checker to config, add missing yields
Diffstat (limited to 'tests')
-rw-r--r--tests/utils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/utils.py b/tests/utils.py
index 179b592501..63e30dc6c0 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -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