Files
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
..
2026-01-19 12:03:26 +09:00
2026-02-12 17:53:40 -08:00
2026-01-19 14:27:00 +09:00