mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-19 22:44:08 -04:00
Convert status codes to HTTPStatus
in tests.rest.admin
(#11455)
This commit is contained in:
parent
e8ae94a223
commit
35b1900f00
12 changed files with 887 additions and 557 deletions
|
@ -46,7 +46,7 @@ class BackgroundUpdatesTestCase(unittest.HomeserverTestCase):
|
|||
)
|
||||
def test_requester_is_no_admin(self, method: str, url: str):
|
||||
"""
|
||||
If the user is not a server admin, an error 403 is returned.
|
||||
If the user is not a server admin, an error HTTPStatus.FORBIDDEN is returned.
|
||||
"""
|
||||
|
||||
self.register_user("user", "pass", admin=False)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue