12 lines
302 B
Python
12 lines
302 B
Python
import pytest
|
|
from httpx import AsyncClient
|
|
|
|
pytestmark = [pytest.mark.unit, pytest.mark.asyncio]
|
|
|
|
|
|
async def test_healthz_returns_ok_status(client: AsyncClient) -> None:
|
|
response = await client.get("/healthz")
|
|
|
|
assert response.status_code == 200
|
|
assert response.json() == {"status": "ok"}
|