diff options
author | Jonathan de Jong <jonathan@automatia.nl> | 2020-10-15 21:29:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-15 15:29:13 -0400 |
commit | 6b5a115c0a0f9036444cd8686b32afbdf5334915 (patch) | |
tree | 168f7026466ec07269c3cc4882f7572ac60fd64a /tests/app | |
parent | Send some ephemeral events to appservices (#8437) (diff) | |
download | synapse-6b5a115c0a0f9036444cd8686b32afbdf5334915.tar.xz |
Solidify the HomeServer constructor. (#8515)
This implements a more standard API for instantiating a homeserver and moves some of the dependency injection into the test suite. More concretely this stops using `setattr` on all `kwargs` passed to `HomeServer`.
Diffstat (limited to 'tests/app')
-rw-r--r-- | tests/app/test_frontend_proxy.py | 2 | ||||
-rw-r--r-- | tests/app/test_openid_listener.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/app/test_frontend_proxy.py b/tests/app/test_frontend_proxy.py index 641093d349..4a301b84e1 100644 --- a/tests/app/test_frontend_proxy.py +++ b/tests/app/test_frontend_proxy.py @@ -22,7 +22,7 @@ class FrontendProxyTests(HomeserverTestCase): def make_homeserver(self, reactor, clock): hs = self.setup_test_homeserver( - http_client=None, homeserverToUse=GenericWorkerServer + http_client=None, homeserver_to_use=GenericWorkerServer ) return hs diff --git a/tests/app/test_openid_listener.py b/tests/app/test_openid_listener.py index 0f016c32eb..c2b10d2c70 100644 --- a/tests/app/test_openid_listener.py +++ b/tests/app/test_openid_listener.py @@ -26,7 +26,7 @@ from tests.unittest import HomeserverTestCase class FederationReaderOpenIDListenerTests(HomeserverTestCase): def make_homeserver(self, reactor, clock): hs = self.setup_test_homeserver( - http_client=None, homeserverToUse=GenericWorkerServer + http_client=None, homeserver_to_use=GenericWorkerServer ) return hs @@ -84,7 +84,7 @@ class FederationReaderOpenIDListenerTests(HomeserverTestCase): class SynapseHomeserverOpenIDListenerTests(HomeserverTestCase): def make_homeserver(self, reactor, clock): hs = self.setup_test_homeserver( - http_client=None, homeserverToUse=SynapseHomeServer + http_client=None, homeserver_to_use=SynapseHomeServer ) return hs |