Repository navigation
test(mcp): MCP, toolset and tool tests are named by behavior - #3872
Merged
Merged
Conversation
Owner
Author
|
Test and check results (local):
Follow-up, not in this pull request: some moved test bodies still patch |
dan-petty
force-pushed
the
test/1330-mcp-test-files-by-behavior
branch
from
November 7, 2026 00:32
6d5f156 to
f36c96b
Compare
Split test_fastmcp_contracts.py and test_mcp.py into one file per behavior, rename the dispatcher, toolset and tool test files, and move the cases of devops mcp to tests/commands. All 279 tests keep their names and bodies. Add a syrupy snapshot of the MCP tool listing (name, description and input schema of each tool). Fix the old paths in docs/TESTING.md, the hermetic floor invariant and the plans of open changes. Plans #3765.
dan-petty
force-pushed
the
test/1330-mcp-test-files-by-behavior
branch
from
November 7, 2026 00:42
f36c96b to
b0e4c52
Compare
Owner
Author
|
Fix: the first run failed in shards 1 and 4. |
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.
MCP, toolset and tool tests now sit in files that carry the name of the behavior they prove. Before, a few large files (
test_mcp.py,test_fastmcp_contracts.py,test_pydantic_ai_toolsets.py) held many unrelated behaviors. A reader had to open them to learn what they cover.The change splits those files by behavior, moves the toolset tests to
tests/ai/toolsets/, and moves the MCP command tests totests/commands/. It addstests/support/mcp_client.pyfor the shared in-process client. It moves test bodies only and adds no test. Plans and documents that named an old file now name the new one.Closes #3765
Change:
openspec/changes/archive/2026-11-06-3765-mcp-test-files-by-behavior/