SurfSense/surfsense_backend/tests/integration
CREDO23 1acde6a470 test(agents): cover live filesystem middleware, retire dead twin
The single-agent-era filesystem middleware (app/agents/shared/middleware/
filesystem.py, ~2000 lines) was never instantiated in production, yet three
unit suites validated it — an illusory guardrail while the live decomposed
middleware (multi_agent_chat/middleware/shared/filesystem) was unguarded.

Close the gap before reorganizing the agents module:
- Add 14 integration tests driving live B's tools in desktop mode (real
  on-disk effects) and cloud mode (in-state staging, namespace policy).
- Port all high-value dead-twin assertions onto the live path: cloud rm/rmdir
  staging + guard rails, KBPostgresBackend delete-view filter, mode-scoped
  system prompt, cwd/relative/namespace resolution, multi-root mount
  normalization.
- Delete dead twin filesystem.py, drop its __init__ re-export, and retire its
  3 dead-twin tests.

Verified: test_import_all + middleware unit + FS integration all green.
2026-06-04 17:46:49 +02:00
..
agents/multi_agent_chat test(agents): cover live filesystem middleware, retire dead twin 2026-06-04 17:46:49 +02:00
chat feat: improved document, folder mentions rendering 2026-05-09 22:15:51 -07:00
composio fix(tests): improve composio module hijack in integration tests 2026-05-13 00:44:20 +05:30
document_upload test: update Stripe and Google Calendar integration tests to use ComposioService 2026-05-16 21:13:17 +05:30
google_unification refactor(agents): move tools package to app/agents/shared (slice 6) 2026-06-04 13:11:56 +02:00
harness feat: updated agent harness 2026-04-28 09:22:19 -07:00
indexing_pipeline test: refactor Gmail indexer tests to utilize ComposioService and hybrid chunking 2026-05-16 21:26:40 +05:30
notifications test: add notifications integration behavior guard 2026-06-03 21:53:06 +02:00
retriever refactor(agents): move middleware package to app/agents/shared (slice 5c) 2026-06-04 13:00:41 +02:00
__init__.py test: bootstrap pytest environment for backend 2026-02-24 18:19:56 +02:00
conftest.py test: refactor Gmail indexer tests to utilize ComposioService and hybrid chunking 2026-05-16 21:26:40 +05:30
test_document_versioning.py chore: ran linting 2026-04-03 13:14:40 +05:30
test_obsidian_plugin_routes.py chore: linting 2026-04-27 14:04:50 -07:00