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/rest/test_health.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/rest/test_health.py')
-rw-r--r-- | tests/rest/test_health.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/rest/test_health.py b/tests/rest/test_health.py index da325955f8..c0a2501742 100644 --- a/tests/rest/test_health.py +++ b/tests/rest/test_health.py @@ -11,8 +11,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -from http import HTTPStatus - from synapse.rest.health import HealthResource from tests import unittest @@ -26,5 +24,5 @@ class HealthCheckTests(unittest.HomeserverTestCase): def test_health(self) -> None: channel = self.make_request("GET", "/health", shorthand=False) - self.assertEqual(channel.code, HTTPStatus.OK) + self.assertEqual(channel.code, 200) self.assertEqual(channel.result["body"], b"OK") |