13 lines
302 B
Python
13 lines
302 B
Python
|
|
"""Tests for health endpoint (T03)."""
|
||
|
|
import pytest
|
||
|
|
|
||
|
|
|
||
|
|
@pytest.mark.asyncio
|
||
|
|
async def test_health_endpoint(client):
|
||
|
|
resp = await client.get("/api/health")
|
||
|
|
assert resp.status_code == 200
|
||
|
|
data = resp.json()
|
||
|
|
assert data["status"] == "ok"
|
||
|
|
assert "db" in data
|
||
|
|
assert "redis" in data
|