feat: scaffold FastAPI backend with ports-and-adapters layout

This commit is contained in:
Justin Visser 2026-08-09 20:58:10 +02:00
parent eee8195662
commit c6a737db96
16 changed files with 685 additions and 0 deletions

View file

View file

@ -0,0 +1,12 @@
"""Smoke test for the application factory."""
from fastapi.testclient import TestClient
from app.main import create_app
def test_health_reports_mode() -> None:
client = TestClient(create_app())
response = client.get("/api/health")
assert response.status_code == 200
assert response.json()["mode"] in ("live", "demo")