feat: scaffold FastAPI backend with ports-and-adapters layout
This commit is contained in:
parent
eee8195662
commit
c6a737db96
16 changed files with 685 additions and 0 deletions
0
backend/tests/__init__.py
Normal file
0
backend/tests/__init__.py
Normal file
12
backend/tests/test_health.py
Normal file
12
backend/tests/test_health.py
Normal 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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue