mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-14 09:03:16 +00:00
test(mcp): account for internal route patch quality exceptions
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
197e5c5513
commit
29145662ab
1 changed files with 4 additions and 4 deletions
|
|
@ -8227,12 +8227,12 @@ class TestSingleServerPreflightReachesIdJag:
|
|||
from litellm.proxy._experimental.mcp_server import server as server_module
|
||||
|
||||
with (
|
||||
patch.object(
|
||||
patch.object( # test-quality-ok: route wiring must use the manager's configured server
|
||||
server_module.global_mcp_server_manager,
|
||||
"get_mcp_server_by_name",
|
||||
return_value=server,
|
||||
),
|
||||
patch.object(
|
||||
patch.object( # test-quality-ok: route wiring must invoke the manager preflight
|
||||
server_module.global_mcp_server_manager,
|
||||
"preflight_token_exchange",
|
||||
preflight,
|
||||
|
|
@ -8287,12 +8287,12 @@ class TestSingleServerPreflightReachesIdJag:
|
|||
preflight = AsyncMock()
|
||||
|
||||
with (
|
||||
patch.object(
|
||||
patch.object( # test-quality-ok: route wiring must use the manager's configured server
|
||||
server_module.global_mcp_server_manager,
|
||||
"get_mcp_server_by_name",
|
||||
return_value=token_exchange,
|
||||
),
|
||||
patch.object(
|
||||
patch.object( # test-quality-ok: route wiring must invoke the manager preflight
|
||||
server_module.global_mcp_server_manager,
|
||||
"preflight_token_exchange",
|
||||
preflight,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue