Files
marriage/services/profiles/tests/test_health.py

11 lines
233 B
Python

from fastapi.testclient import TestClient
from app.main import app
client = TestClient(app)
def test_health():
r = client.get("/health")
assert r.status_code == 200
data = r.json()
assert data.get("status") == "ok"