litellm/tests/mcp_tests
Julio Quinteros Pro 375f79de03 fix(tests): add spec_path=None to MCP server mocks to fix Pydantic validation
spec_path was added to LiteLLM_MCPServerTable but the three
test_add_update_server_* mocks weren't updated. MagicMock auto-creates
a MagicMock for unset attributes, which fails the Optional[str] Pydantic
validation. Fixes test_add_update_server_with_alias,
test_add_update_server_without_alias and
test_add_update_server_fallback_to_server_id.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-20 13:13:48 -03:00
..
test_configs
conftest.py
mcp_server.py
test_aresponses_api_with_mcp.py
test_mcp_auth_header_extraction.py
test_mcp_auth_priority.py
test_mcp_chat_completions.py
test_mcp_client_unit.py
test_mcp_guardrails.py
test_mcp_hooks.py
test_mcp_litellm_client.py
test_mcp_logging.py
test_mcp_server.py fix(tests): add spec_path=None to MCP server mocks to fix Pydantic validation 2026-02-20 13:13:48 -03:00
test_oauth2_mcp_config.yaml
test_openapi_spec_path_url.py
test_proxy_mcp_e2e.py
test_semantic_tool_filter_e2e.py