summary refs log tree commit diff
path: root/tests/rest/admin/test_user.py
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2022-07-04 18:08:56 +0100
committerGitHub <noreply@github.com>2022-07-04 18:08:56 +0100
commitd102ad67fddc650c34baa89dc7b2926d46a9aeca (patch)
tree542df6d58640540ea934cd7a5bd0e1486fe96bdf /tests/rest/admin/test_user.py
parentRevert "Up the dependency on canonicaljson to ^1.5.0" (diff)
downloadsynapse-d102ad67fddc650c34baa89dc7b2926d46a9aeca.tar.xz
annotate tests.server.FakeChannel (#13136)
Diffstat (limited to 'tests/rest/admin/test_user.py')
-rw-r--r--tests/rest/admin/test_user.py2
1 files changed, 1 insertions, 1 deletions
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