Goal: Validate the interaction between different modules and ensure the core pipelines function correctly with mocked external dependencies.
Pipeline Testing:
- Implement integration tests for the ingestion pipeline (src/pipelines/ingest.py).
- Implement integration tests for the retrieval pipeline (src/pipelines/retrieval.py).
- Implement integration tests for src/pipelines/weaver.py.
API Route Testing:
- Implement tests for FastAPI routes using fastapi.testclient.TestClient.
- Test authentication middleware and dependency injection in src/api/dependencies.py.
Mocking Strategy:
- Establish a clear strategy for mocking LLM calls (Anthropic, Google, OpenAI).
- Create mocks for vector databases (Pinecone) and graph databases (Neo4j).
Goal: Validate the interaction between different modules and ensure the core pipelines function correctly with mocked external dependencies.
Pipeline Testing:
API Route Testing:
Mocking Strategy: