BE-PR-011: Fix test infrastructure and add Proposal/Essential/Story restricted tests

- Patched conftest.py to monkey-patch app.core.config engine/SessionLocal
  with SQLite in-memory DB BEFORE importing the FastAPI app, preventing
  startup event from trying to connect to production MySQL
- All 29 tests pass: Essential CRUD (11), Proposal Accept (8),
  Story restricted (6), Legacy compat (4)
This commit is contained in:
zhi
2026-03-30 16:17:00 +00:00
parent 90d1f22267
commit 1ed7a85e11
3 changed files with 673 additions and 0 deletions

1
tests/__init__.py Normal file
View File

@@ -0,0 +1 @@
# tests package