SurfSense/surfsense_backend/tests/integration/google_unification
CREDO23 2db4ad479e refactor(agents): colocate KB-search tool with its sole consumer; fix report ImportError
shared/tools/knowledge_base.py had exactly one production consumer: the
report deliverable, which imported it via `from .knowledge_base import ...`
-- a sibling path that did not exist, so the report KB-search path would
raise ImportError at runtime.

Move the module next to report.py (subagents/builtins/deliverables/tools/)
which makes that relative import valid, and move its only dependency
(shared/utils.py date helpers) to multi_agent_chat/shared/date_filters.py,
shared between the KB tool and the knowledge_search middleware.

Drop the now-unused knowledge-base re-exports from the shared/tools barrel
and repoint the integration tests. import-all + error-contract stay green.
2026-06-05 10:28:56 +02:00
..
__init__.py feat: add integration and unit tests for Google unification connectors 2026-03-19 17:51:15 +05:30
conftest.py refactor(agents): colocate KB-search tool with its sole consumer; fix report ImportError 2026-06-05 10:28:56 +02:00
test_browse_includes_legacy_docs.py refactor(agents): colocate KB-search tool with its sole consumer; fix report ImportError 2026-06-05 10:28:56 +02:00
test_calendar_indexer_credentials.py test: update Stripe and Google Calendar integration tests to use ComposioService 2026-05-16 21:13:17 +05:30
test_drive_indexer_credentials.py chore: ran linting 2026-05-09 05:28:09 +05:30
test_gmail_indexer_credentials.py test: refactor Gmail indexer tests to utilize ComposioService and hybrid chunking 2026-05-16 21:26:40 +05:30
test_hybrid_search_type_filtering.py chore: ran linting 2026-03-21 13:21:19 +05:30
test_search_includes_legacy_docs.py chore: ran linting 2026-03-22 00:43:53 +05:30