11 lines
312 B
Python
11 lines
312 B
Python
import pytest
|
|
from fastapi.testclient import TestClient
|
|
|
|
# No database needed for this simple test
|
|
|
|
def test_health_check(client: TestClient):
|
|
"""Test the health check endpoint."""
|
|
response = client.get("/api/health")
|
|
assert response.status_code == 200
|
|
assert response.json() == {"status": "ok"}
|