From 48b55a40358209b8691704c7daad16f881651f05 Mon Sep 17 00:00:00 2001 From: ksieuk Date: Sun, 8 Oct 2023 17:02:53 +0300 Subject: [PATCH] fix: [#8] int code to http --- src/template/tests/unit/src/test_health.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/template/tests/unit/src/test_health.py b/src/template/tests/unit/src/test_health.py index 0c292e9..15e2bb3 100644 --- a/src/template/tests/unit/src/test_health.py +++ b/src/template/tests/unit/src/test_health.py @@ -1,3 +1,5 @@ +import http + import httpx import pytest @@ -6,4 +8,4 @@ pytestmark = [pytest.mark.asyncio] async def test_health(app_http_client: httpx.AsyncClient) -> None: response = await app_http_client.get("/health/") - assert response.status_code == 200 + assert response.status_code == http.HTTPStatus.OK