Files
chatbot_v3/tests/unit/test_healthz.py

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"}