mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-25 19:15:51 +03:00
Fix terms UI auth test
This commit is contained in:
parent
88c5ffec33
commit
dba84fa69c
1 changed files with 5 additions and 2 deletions
|
@ -181,7 +181,7 @@ class RegisterRestServletTestCase(unittest.TestCase):
|
||||||
self.hs.config.user_consent_version = "1.0"
|
self.hs.config.user_consent_version = "1.0"
|
||||||
|
|
||||||
# Do a UI auth request
|
# 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)
|
render(request, self.resource, self.clock)
|
||||||
|
|
||||||
self.assertEquals(channel.result["code"], b"401", channel.result)
|
self.assertEquals(channel.result["code"], b"401", channel.result)
|
||||||
|
@ -220,7 +220,10 @@ class RegisterRestServletTestCase(unittest.TestCase):
|
||||||
"username": "kermit",
|
"username": "kermit",
|
||||||
"password": "monkey",
|
"password": "monkey",
|
||||||
"device_id": device_id,
|
"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)
|
self.registration_handler.check_username = Mock(return_value=True)
|
||||||
|
|
Loading…
Reference in a new issue