summary refs log tree commit diff
path: root/tests/server.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2023-03-08 18:00:58 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2023-03-09 16:50:31 +0000
commitc3c3c6d2005b70ef49526f9a4b99c39feebf3775 (patch)
tree7b710409a85db92ac2fd3cb0fca56c39c2da243b /tests/server.py
parentMove Account Validity callbacks to a dedicated file (diff)
downloadsynapse-c3c3c6d2005b70ef49526f9a4b99c39feebf3775.tar.xz
Move callback-related code from the SpamChecker to its own class
And update the many references.
Diffstat (limited to '')
-rw-r--r--tests/server.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/server.py b/tests/server.py
index 5de9722766..4699ef2e1e 100644
--- a/tests/server.py
+++ b/tests/server.py
@@ -72,11 +72,13 @@ from twisted.web.server import Request, Site
 from synapse.config.database import DatabaseConnectionConfig
 from synapse.config.homeserver import HomeServerConfig
 from synapse.events.presence_router import load_legacy_presence_router
-from synapse.events.spamcheck import load_legacy_spam_checkers
 from synapse.events.third_party_rules import load_legacy_third_party_event_rules
 from synapse.handlers.auth import load_legacy_password_auth_providers
 from synapse.http.site import SynapseRequest
 from synapse.logging.context import ContextResourceUsage
+from synapse.module_api.callbacks.spam_checker_callbacks import (
+    load_legacy_spam_checkers,
+)
 from synapse.server import HomeServer
 from synapse.storage import DataStore
 from synapse.storage.engines import PostgresEngine, create_engine