SOULGATE/server/tests/test_health.py
2026-05-04 03:42:47 +02:00

14 lines
296 B
Python

# Tests de base — vérification du serveur FastAPI
from fastapi.testclient import TestClient
from main import app
client = TestClient(app)
def test_health() -> None:
response = client.get("/health")
assert response.status_code == 200
assert response.json() == {"status": "ok"}