diff options
author | David Robertson <davidr@element.io> | 2022-07-04 18:08:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-04 18:08:56 +0100 |
commit | d102ad67fddc650c34baa89dc7b2926d46a9aeca (patch) | |
tree | 542df6d58640540ea934cd7a5bd0e1486fe96bdf /tests/rest/admin | |
parent | Revert "Up the dependency on canonicaljson to ^1.5.0" (diff) | |
download | synapse-d102ad67fddc650c34baa89dc7b2926d46a9aeca.tar.xz |
annotate tests.server.FakeChannel (#13136)
Diffstat (limited to 'tests/rest/admin')
-rw-r--r-- | tests/rest/admin/test_room.py | 4 | ||||
-rw-r--r-- | tests/rest/admin/test_user.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/rest/admin/test_room.py b/tests/rest/admin/test_room.py index ca6af9417b..230dc76f72 100644 --- a/tests/rest/admin/test_room.py +++ b/tests/rest/admin/test_room.py @@ -1579,8 +1579,8 @@ class RoomTestCase(unittest.HomeserverTestCase): access_token=self.admin_user_tok, ) self.assertEqual(HTTPStatus.OK, channel.code, msg=channel.json_body) - self.assertEqual(room_id, channel.json_body.get("rooms")[0].get("room_id")) - self.assertEqual("ж", channel.json_body.get("rooms")[0].get("name")) + self.assertEqual(room_id, channel.json_body["rooms"][0].get("room_id")) + self.assertEqual("ж", channel.json_body["rooms"][0].get("name")) def test_single_room(self) -> None: """Test that a single room can be requested correctly""" diff --git a/tests/rest/admin/test_user.py b/tests/rest/admin/test_user.py index 0d44102237..e32aaadb98 100644 --- a/tests/rest/admin/test_user.py +++ b/tests/rest/admin/test_user.py @@ -1488,7 +1488,7 @@ class UserRestTestCase(unittest.HomeserverTestCase): if channel.code != HTTPStatus.OK: raise HttpResponseException( - channel.code, channel.result["reason"], channel.json_body + channel.code, channel.result["reason"], channel.result["body"] ) # Set monthly active users to the limit |