chorus/backend/tests
pyr0ball a90c3fc172 feat(backend): add FastAPI routes for items
Wraps the Task 2 CRUD layer in a FastAPI app (schemas.py + main.py) with
POST/GET/GET-by-id/PATCH routes for items, matching the exact paths and
status codes the Discord bot's HTTP client will depend on.

Also fixes a latent bug in db.get_engine: sqlite:///:memory: without a
StaticPool gives each new session a fresh, empty database, which broke
as soon as more than one session shared an engine (the API's per-request
session pattern). Tasks 1-2 never hit this because their tests used a
single session per engine.
2026-07-13 13:43:09 -07:00
..
__init__.py feat(backend): add Item model and stage/type validation 2026-07-13 13:33:40 -07:00
conftest.py feat(backend): add Item model and stage/type validation 2026-07-13 13:33:40 -07:00
test_crud.py feat(backend): add idempotent CRUD layer for items 2026-07-13 13:38:36 -07:00
test_items_api.py feat(backend): add FastAPI routes for items 2026-07-13 13:43:09 -07:00
test_stages.py feat(backend): add Item model and stage/type validation 2026-07-13 13:33:40 -07:00