mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-23 01:55:53 +03:00
Fix tests
This commit is contained in:
parent
e124128542
commit
07ad03d5df
1 changed files with 2 additions and 1 deletions
|
@ -13,6 +13,7 @@ class RegisterRestServletTestCase(unittest.TestCase):
|
|||
self.request_data = ""
|
||||
self.request = Mock(
|
||||
content=Mock(read=Mock(side_effect=lambda: self.request_data)),
|
||||
path='/_matrix/api/v2_alpha/register'
|
||||
)
|
||||
self.request.args = {}
|
||||
|
||||
|
@ -131,4 +132,4 @@ class RegisterRestServletTestCase(unittest.TestCase):
|
|||
})
|
||||
self.registration_handler.register = Mock(return_value=("@user:id", "t"))
|
||||
d = self.servlet.on_POST(self.request)
|
||||
return self.assertFailure(d, SynapseError)
|
||||
return self.assertFailure(d, SynapseError)
|
||||
|
|
Loading…
Reference in a new issue