diff options
author | Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> | 2022-08-05 16:59:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-05 16:59:09 +0200 |
commit | e2ed1b7155bbd38d4a2752073056c112464b3644 (patch) | |
tree | 72c0dd52bb339199a559726aff40a7633403e82b /tests/handlers/test_room_member.py | |
parent | Mark token-authenticaticated-registration API as not-experimental (#11897) (diff) | |
download | synapse-e2ed1b7155bbd38d4a2752073056c112464b3644.tar.xz |
Use literals in place of `HTTPStatus` constants in tests (#13463)
Diffstat (limited to 'tests/handlers/test_room_member.py')
-rw-r--r-- | tests/handlers/test_room_member.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/handlers/test_room_member.py b/tests/handlers/test_room_member.py index 254e7e4b80..b4e1405aee 100644 --- a/tests/handlers/test_room_member.py +++ b/tests/handlers/test_room_member.py @@ -1,4 +1,3 @@ -from http import HTTPStatus from unittest.mock import Mock, patch from twisted.test.proto_helpers import MemoryReactor @@ -260,7 +259,7 @@ class TestReplicatedJoinsLimitedByPerRoomRateLimiter(RedisMultiWorkerStreamTestC f"/_matrix/client/v3/rooms/{self.room_id}/join", access_token=self.bob_token, ) - self.assertEqual(channel.code, HTTPStatus.OK, channel.json_body) + self.assertEqual(channel.code, 200, channel.json_body) # wait for join to arrive over replication self.replicate() |