Files
headquarter/apps/api/tests/test_health.py
T

15 lines
351 B
Python

from fastapi.testclient import TestClient
from app.config import settings
from app.main import app
client = TestClient(app)
def test_health_returns_ok() -> None:
response = client.get("/health")
assert response.status_code == 200
data = response.json()
assert data["status"] == "ok"
assert data["service"] == settings.app_name