summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorTravis Ralston <travpc@gmail.com>2018-10-18 12:45:21 -0600
committerTravis Ralston <travpc@gmail.com>2018-10-18 12:45:21 -0600
commitdba84fa69c55c61d347169d5210bb63f65849fb5 (patch)
treeba540e4a36c77c99bd1c3d7941ba49a839363f9b /tests
parentTest for terms UI auth (diff)
downloadsynapse-dba84fa69c55c61d347169d5210bb63f65849fb5.tar.xz
Fix terms UI auth test
Diffstat (limited to 'tests')
-rw-r--r--tests/rest/client/v2_alpha/test_register.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/rest/client/v2_alpha/test_register.py b/tests/rest/client/v2_alpha/test_register.py
index a802e1a406..36eaabbad8 100644
--- a/tests/rest/client/v2_alpha/test_register.py
+++ b/tests/rest/client/v2_alpha/test_register.py
@@ -181,7 +181,7 @@ class RegisterRestServletTestCase(unittest.TestCase):
         self.hs.config.user_consent_version = "1.0"
 
         # Do a UI auth request
-        reqest, channel = make_request(b"POST", self.url, b"{}")
+        request, channel = make_request(b"POST", self.url, b"{}")
         render(request, self.resource, self.clock)
 
         self.assertEquals(channel.result["code"], b"401", channel.result)
@@ -220,7 +220,10 @@ class RegisterRestServletTestCase(unittest.TestCase):
                 "username": "kermit",
                 "password": "monkey",
                 "device_id": device_id,
-                "session": channel.json_body["session"],
+                "auth": {
+                    "session": channel.json_body["session"],
+                    "type": "m.login.terms",
+                },
             }
         )
         self.registration_handler.check_username = Mock(return_value=True)