You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
467 B
17 lines
467 B
import pytest
|
|
|
|
|
|
@pytest.mark.anyio
|
|
async def test_health_check(api_client) -> None:
|
|
response = await api_client.get("/api/system/health")
|
|
|
|
assert response.status_code == 200
|
|
assert response.json() == {"status": "ok"}
|
|
|
|
|
|
@pytest.mark.anyio
|
|
async def test_readiness_check(api_client) -> None:
|
|
response = await api_client.get("/api/system/ready")
|
|
|
|
assert response.status_code == 200
|
|
assert response.json() == {"status": "ready", "database": "ok"}
|
|
|