mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-02 02:11:58 +00:00
test(mcp): isolate matrix helper import setup
This commit is contained in:
parent
86c932d155
commit
0585149633
1 changed files with 6 additions and 2 deletions
|
|
@ -20,7 +20,8 @@ from pydantic import ValidationError
|
|||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_negotiation_records_preserve_the_peer_call_contract() -> None:
|
||||
async def test_negotiation_records_preserve_the_peer_call_contract(monkeypatch: pytest.MonkeyPatch) -> None:
|
||||
monkeypatch.syspath_prepend(str(Path(__file__).resolve().parents[2]))
|
||||
from integration._support.mcp import math_service
|
||||
from integration.mcp.test_mcp_user_env_vars import UPSTREAM_CALLS
|
||||
from mcp.server.context import ServerRequestContext
|
||||
|
|
@ -52,7 +53,10 @@ async def test_negotiation_records_preserve_the_peer_call_contract() -> None:
|
|||
|
||||
|
||||
@pytest.mark.parametrize("file_backed", (False, True))
|
||||
def test_peer_drain_preserves_received_requests(tmp_path: Path, file_backed: bool) -> None:
|
||||
def test_peer_drain_preserves_received_requests(
|
||||
tmp_path: Path, file_backed: bool, monkeypatch: pytest.MonkeyPatch
|
||||
) -> None:
|
||||
monkeypatch.syspath_prepend(str(Path(__file__).resolve().parents[2]))
|
||||
from integration._support.mcp import McpPeer
|
||||
|
||||
request: Final = {"body": {"method": "tools/call"}, "headers": {"authorization": "synthetic"}}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue