"docs/vscode:/vscode.git/clone" did not exist on "2176778cd384ca930ebcf5c0630f7bbefe4a9aad"
Unverified Commit ab97bcf6 authored by Cyrus Leung's avatar Cyrus Leung Committed by GitHub
Browse files

[CI/Build] Relax `test_mcp_tool_call` (#34204)


Signed-off-by: default avatarDarkLight1337 <tlleungac@connect.ust.hk>
parent 25e48a3a
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
import importlib
import importlib.util
import json
import pytest
......@@ -179,12 +179,12 @@ async def test_mcp_tool_call(client: OpenAI, model_name: str):
assert response.output[2].type == "reasoning"
# make sure the correct math is in the final output
assert response.output[3].type == "message"
assert "56088" in response.output[3].content[0].text
assert any(s in response.output[3].content[0].text for s in ("56088", "56,088"))
# test raw input_messages / output_messages
assert len(response.input_messages) == 1
assert len(response.output_messages) == 3
assert "56088" in response.output_messages[2]["message"]
assert any(s in response.output_messages[2]["message"] for s in ("56088", "56,088"))
@pytest.mark.asyncio
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment