deerflow2/tests
Willem Jiang fb319aaa44
test: add unit tests for global connection pool (Issue #778) (#780)
* test: add unit tests for global connection pool (Issue #778)

- Add TestLifespanFunction class with 9 tests for lifespan management:
  - PostgreSQL/MongoDB pool initialization success/failure
  - Cleanup on shutdown
  - Skip initialization when not configured

- Add TestGlobalConnectionPoolUsage class with 4 tests:
  - Using global pools when available
  - Fallback to per-request connections

- Fix missing dict_row import in app.py (bug from PR #757)

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-23 23:06:39 +08:00
..
integration fix: handle greetings without triggering research workflow (#755) 2025-12-13 20:25:46 +08:00
unit test: add unit tests for global connection pool (Issue #778) (#780) 2025-12-23 23:06:39 +08:00
test_ppt_localization.py Add unit tests for PPT composer locale handling (#696) 2025-11-22 17:03:06 +08:00
test_state.py feat: 1. replace black with ruff for fomatting and sort import (#489) 2025-08-17 22:57:23 +08:00