Files

20 lines
545 B
Python
Raw Permalink Normal View History

"""Health endpoint test — AC 18."""
2026-06-03 23:52:05 +00:00
from __future__ import annotations
import pytest
2026-06-03 23:52:05 +00:00
from httpx import AsyncClient
@pytest.mark.asyncio
class TestHealth:
"""AC 18: GET /api/v1/health -> 200 without auth."""
2026-06-03 23:52:05 +00:00
async def test_health_returns_200_without_auth(self, client: AsyncClient):
"""AC 18: GET /api/v1/health -> 200 without auth."""
resp = await client.get("/api/v1/health")
assert resp.status_code == 200
data = resp.json()
assert data["status"] == "ok"
assert "version" in data