14 lines
344 B
Python
14 lines
344 B
Python
|
|
from fastapi.testclient import TestClient
|
||
|
|
|
||
|
|
from tenant_engine.app import create_app
|
||
|
|
|
||
|
|
|
||
|
|
def test_health_endpoint() -> None:
|
||
|
|
client = TestClient(create_app())
|
||
|
|
response = client.get("/health")
|
||
|
|
|
||
|
|
assert response.status_code == 200
|
||
|
|
body = response.json()
|
||
|
|
assert body["status"] == "ok"
|
||
|
|
assert body["service"] == "tenant-engine"
|