mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-16 09:22:22 +00:00
test(e2e): check the codex mcp row exits cleanly on both turns
This commit is contained in:
parent
89020f578f
commit
52c35413bd
2 changed files with 4 additions and 1 deletions
|
|
@ -2,10 +2,11 @@ from __future__ import annotations
|
|||
|
||||
import os
|
||||
from pathlib import Path
|
||||
from typing import Final
|
||||
|
||||
from mcp.server.mcpserver import MCPServer
|
||||
|
||||
server = MCPServer("vault")
|
||||
server: Final = MCPServer("vault")
|
||||
|
||||
|
||||
@server.tool()
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ class TestCodexMcpTool:
|
|||
model=setup.model,
|
||||
cwd=workspace,
|
||||
)
|
||||
assert first.exit_code == 0, first
|
||||
assert first.thread_id is not None, first
|
||||
assert any(first_marker in call.output for call in first.mcp_calls), first
|
||||
assert first_marker in first.answer, first
|
||||
|
|
@ -41,5 +42,6 @@ class TestCodexMcpTool:
|
|||
model=setup.model,
|
||||
cwd=workspace,
|
||||
)
|
||||
assert second.exit_code == 0, second
|
||||
assert any(second_marker in call.output for call in second.mcp_calls), second
|
||||
assert second_marker in second.answer, second
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue