diff options
author | Manuel Stahl <37705355+awesome-manuel@users.noreply.github.com> | 2020-04-28 19:19:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 18:19:36 +0100 |
commit | 04dd7d182d0601289e0e047243b50803f526ef69 (patch) | |
tree | e7ba14367708d146e0626a7199a42d8511ad9911 /tests/rest/admin | |
parent | Add some replication tests (#7278) (diff) | |
download | synapse-04dd7d182d0601289e0e047243b50803f526ef69.tar.xz |
Return total number of users and profile attributes in admin users endpoint (#6881)
Signed-off-by: Manuel Stahl <manuel.stahl@awesome-technologies.de>
Diffstat (limited to 'tests/rest/admin')
-rw-r--r-- | tests/rest/admin/test_user.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/rest/admin/test_user.py b/tests/rest/admin/test_user.py index 6416fb5d2a..6c88ab06e2 100644 --- a/tests/rest/admin/test_user.py +++ b/tests/rest/admin/test_user.py @@ -360,6 +360,7 @@ class UsersListTestCase(unittest.HomeserverTestCase): self.assertEqual(200, int(channel.result["code"]), msg=channel.result["body"]) self.assertEqual(3, len(channel.json_body["users"])) + self.assertEqual(3, channel.json_body["total"]) class UserRestTestCase(unittest.HomeserverTestCase): @@ -434,6 +435,7 @@ class UserRestTestCase(unittest.HomeserverTestCase): "admin": True, "displayname": "Bob's name", "threepids": [{"medium": "email", "address": "bob@bob.bob"}], + "avatar_url": None, } ) |