9 lines
295 B
Python
9 lines
295 B
Python
|
|
"""T047: Health check endpoint test — GET /health → 200 {"status": "ok"}"""
|
||
|
|
from fastapi.testclient import TestClient
|
||
|
|
|
||
|
|
|
||
|
|
def test_health_returns_ok(client: TestClient):
|
||
|
|
response = client.get("/health")
|
||
|
|
assert response.status_code == 200
|
||
|
|
assert response.json() == {"status": "ok"}
|