14 lines
359 B
Python
14 lines
359 B
Python
from __future__ import annotations
|
|
|
|
import pytest
|
|
from httpx import AsyncClient
|
|
|
|
|
|
@pytest.mark.asyncio
|
|
async def test_health_check(client: AsyncClient) -> None:
|
|
response = await client.get("/api/v1/system/health")
|
|
assert response.status_code == 200
|
|
data = response.json()
|
|
assert data["status"] == "ok"
|
|
assert data["service"] == "core-api"
|