MicroFish/backend/app
Ubuntu 9ed2412745 test(conftest): add in_memory_db and task manager singleton reset fixtures; fix broken tests
- Replace conftest.py with two autouse fixtures: reset_graph_factory_singleton
  and reset_task_manager_singleton, plus in_memory_db fixture for tests
  requiring a real DB
- Rewrite test_project_task_recovery.py to use ProjectManager + SQLite in-memory
  DB instead of the removed Project dataclass (same guarantee: active_task_id
  persists and defaults to None)
- Fix db.py init_db() to import db_models before Base.metadata.create_all() so
  all ORM tables are registered and created on first startup

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-03 00:15:42 +00:00
..
api feat(recovery): persist active_task_id to project.json for browser-refresh reconnection 2026-04-26 14:54:44 +00:00
graph fix(graph): cap get_all_edges to 5000 edges to prevent unbounded RAM growth 2026-04-26 14:50:21 +00:00
models fix(task): rename loop var t→task_row to avoid shadowing locale.t import 2026-05-03 00:13:12 +00:00
services fix(report): strip fabricated tool_result blocks to prevent LLM hallucination loop 2026-04-26 15:06:24 +00:00
storage fix(storage,db): path traversal fix, delete_prefix validation, remove dead import, factory uses Config 2026-05-03 00:06:58 +00:00
utils fix(llm): centralise Azure URL normalisation in parse_azure_url utility 2026-04-25 21:09:48 +00:00
__init__.py feat(app): inject SQLAlchemy DB and StorageService into Flask app factory 2026-05-03 00:08:13 +00:00
config.py feat(config): add DATABASE_URL, STORAGE_TYPE, AZURE_STORAGE_*, JWT config vars 2026-05-02 23:53:16 +00:00
db.py test(conftest): add in_memory_db and task manager singleton reset fixtures; fix broken tests 2026-05-03 00:15:42 +00:00