summary refs log tree commit diff
path: root/tests/rest/client/test_login.py
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2021-10-01 12:22:47 +0100
committerGitHub <noreply@github.com>2021-10-01 12:22:47 +0100
commite46ac85d674d90fa01aa49aee9587093ab6d8677 (patch)
tree1c868fac2c9c5f2e18403056e3cbecbae43d2470 /tests/rest/client/test_login.py
parentAdd type hints to filtering classes. (#10958) (diff)
downloadsynapse-e46ac85d674d90fa01aa49aee9587093ab6d8677.tar.xz
type-hint `HomeserverTestcase.setup_test_homeserver` (#10961)
* type-hint `HomeserverTestcase.setup_test_homeserver`

For better IDE completion. A small drive-by.
Diffstat (limited to 'tests/rest/client/test_login.py')
-rw-r--r--tests/rest/client/test_login.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/rest/client/test_login.py b/tests/rest/client/test_login.py
index 371615a015..7fd92c94e0 100644
--- a/tests/rest/client/test_login.py
+++ b/tests/rest/client/test_login.py
@@ -94,9 +94,9 @@ class LoginRestServletTestCase(unittest.HomeserverTestCase):
 
     def make_homeserver(self, reactor, clock):
         self.hs = self.setup_test_homeserver()
-        self.hs.config.enable_registration = True
-        self.hs.config.registrations_require_3pid = []
-        self.hs.config.auto_join_rooms = []
+        self.hs.config.registration.enable_registration = True
+        self.hs.config.registration.registrations_require_3pid = []
+        self.hs.config.registration.auto_join_rooms = []
         self.hs.config.captcha.enable_registration_captcha = False
 
         return self.hs