feat: add E2E tests for full pipeline and MCP transports#5
Merged
Conversation
Add 21 end-to-end tests exercising the complete init → ingest → serve → query pipeline with real LanceDB, real PDF parsing, and mocked OpenAI embeddings. - CLI E2E tests (8): init, ingest, force re-ingest, stats, search, filtered search, delete, config output - HTTP transport tests (11): list tools/prompts/resources, all 6 tool calls, prompt retrieval, resource read via MCP client SDK - stdio transport tests (2): list_tools and call list_docs via subprocess Also adds pytest-asyncio, pytest-timeout to dev deps, registers e2e marker, and adds a separate e2e CI job (Python 3.12, depends on unit test job). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
init → ingest → serve → querypipeline with real LanceDB, real PDF parsing, and mocked OpenAI embeddingspytest-asyncio,pytest-timeoutto dev deps; registere2emarker; add separatee2eCI job (Python 3.12, depends ontest)Test plan
uv run pytest tests/e2e/ -v --timeout=120)uv run pytest tests/ --ignore=tests/e2e/)uv run ruff check src/ tests/ && uv run ruff format --check src/ tests/)🤖 Generated with Claude Code