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-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project # SPDX-FileCopyrightText: Copyright contributors to the vLLM project
import importlib import importlib.util
import json import json
import pytest import pytest
...@@ -179,12 +179,12 @@ async def test_mcp_tool_call(client: OpenAI, model_name: str): ...@@ -179,12 +179,12 @@ async def test_mcp_tool_call(client: OpenAI, model_name: str):
assert response.output[2].type == "reasoning" assert response.output[2].type == "reasoning"
# make sure the correct math is in the final output # make sure the correct math is in the final output
assert response.output[3].type == "message" 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 # test raw input_messages / output_messages
assert len(response.input_messages) == 1 assert len(response.input_messages) == 1
assert len(response.output_messages) == 3 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 @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