Files
fzarifian f1d5882596 feat: initialiser le projet CVP (Next.js 14 + FastAPI + PostgreSQL)
- Frontend : Next.js 14 App Router, TypeScript strict, Tailwind 3, shadcn/ui, next-intl (fr/en)
- Backend : FastAPI, SQLAlchemy 2 async, Alembic, Pydantic 2, Python 3.11
- Infrastructure : Docker Compose (PostgreSQL 16 + Ollama)
- Tooling : ESLint + Prettier (frontend), Ruff (backend), pytest
- Structure complète des dossiers avec pages et routers placeholder
2026-04-13 15:28:01 +02:00

12 lines
252 B
Python

from fastapi.testclient import TestClient
from app.main import app
client = TestClient(app)
def test_health_check() -> None:
response = client.get("/health")
assert response.status_code == 200
assert response.json() == {"status": "ok"}