join room: fix error code & unit tests
This commit is contained in:
parent
7ffa47c267
commit
d2a3e618f4
2 changed files with 11 additions and 8 deletions
|
@ -33,11 +33,11 @@ class BotTest(unittest.IsolatedAsyncioTestCase):
|
|||
# this won't be a 403 from synapse, but a LocalProtocolError from matrix_webhook
|
||||
self.assertEqual(
|
||||
bot_req({"body": 3}, KEY, "wrong_room"),
|
||||
{"status": 403, "ret": "Unknown room"},
|
||||
{"status": 400, "ret": "wrong_room was not legal room ID or room alias"},
|
||||
)
|
||||
self.assertEqual(
|
||||
bot_req({"body": 3}, KEY, "wrong_room", key_as_param=True),
|
||||
{"status": 403, "ret": "Unknown room"},
|
||||
{"status": 400, "ret": "wrong_room was not legal room ID or room alias"},
|
||||
)
|
||||
|
||||
async def test_message(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue