test(mcp): align streaming fixture and generated API documentation

This commit is contained in:
Joshua Valluru 2026-09-22 13:31:03 -07:00
parent 2690651b3b
commit 180acefb3d
2 changed files with 10 additions and 8 deletions

View file

@ -1,5 +1,6 @@
import sys
import types
from contextlib import nullcontext
from types import SimpleNamespace
from unittest.mock import AsyncMock, MagicMock
@ -77,6 +78,7 @@ def _mock_mcp_environment(monkeypatch: pytest.MonkeyPatch) -> AsyncMock:
"""Patch the MCP tool-call plumbing so _execute_tool_calls can run in tests."""
call_tool = AsyncMock(return_value=CallToolResult(content=[TextContent(type="text", text="ok")], isError=False))
fake_manager = types.SimpleNamespace(
catalog=types.SimpleNamespace(operation=nullcontext),
get_registry=MagicMock(return_value={}),
call_tool=call_tool,
_get_mcp_server_from_tool_name=MagicMock(return_value=None),
@ -89,7 +91,7 @@ def _mock_mcp_environment(monkeypatch: pytest.MonkeyPatch) -> AsyncMock:
monkeypatch.setitem(
sys.modules,
"litellm.proxy.proxy_server",
types.SimpleNamespace(proxy_logging_obj=MagicMock()),
types.SimpleNamespace(proxy_logging_obj=MagicMock(), prisma_client=None),
)
return call_tool

View file

@ -23134,7 +23134,7 @@ export interface paths {
*
* Resolution order:
* 1. Registered MCP server alias / name
* 2. Comma-separated list (short-circuits before any DB call)
* 2. Comma-separated list
* 3. Toolset name (DB lookup, cached)
* 4. MCP access group tag (DB lookup, cached)
*/
@ -23145,7 +23145,7 @@ export interface paths {
*
* Resolution order:
* 1. Registered MCP server alias / name
* 2. Comma-separated list (short-circuits before any DB call)
* 2. Comma-separated list
* 3. Toolset name (DB lookup, cached)
* 4. MCP access group tag (DB lookup, cached)
*/
@ -23156,7 +23156,7 @@ export interface paths {
*
* Resolution order:
* 1. Registered MCP server alias / name
* 2. Comma-separated list (short-circuits before any DB call)
* 2. Comma-separated list
* 3. Toolset name (DB lookup, cached)
* 4. MCP access group tag (DB lookup, cached)
*/
@ -23167,7 +23167,7 @@ export interface paths {
*
* Resolution order:
* 1. Registered MCP server alias / name
* 2. Comma-separated list (short-circuits before any DB call)
* 2. Comma-separated list
* 3. Toolset name (DB lookup, cached)
* 4. MCP access group tag (DB lookup, cached)
*/
@ -23178,7 +23178,7 @@ export interface paths {
*
* Resolution order:
* 1. Registered MCP server alias / name
* 2. Comma-separated list (short-circuits before any DB call)
* 2. Comma-separated list
* 3. Toolset name (DB lookup, cached)
* 4. MCP access group tag (DB lookup, cached)
*/
@ -23189,7 +23189,7 @@ export interface paths {
*
* Resolution order:
* 1. Registered MCP server alias / name
* 2. Comma-separated list (short-circuits before any DB call)
* 2. Comma-separated list
* 3. Toolset name (DB lookup, cached)
* 4. MCP access group tag (DB lookup, cached)
*/
@ -23200,7 +23200,7 @@ export interface paths {
*
* Resolution order:
* 1. Registered MCP server alias / name
* 2. Comma-separated list (short-circuits before any DB call)
* 2. Comma-separated list
* 3. Toolset name (DB lookup, cached)
* 4. MCP access group tag (DB lookup, cached)
*/