test(mcp): assert the BYOK listing lands in the caller's listed-tool slot

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
yucheng 2026-09-26 23:43:36 +00:00
parent c93d88ed79
commit 46cd428b65

View file

@ -7088,6 +7088,9 @@ class TestMCPServerManager:
user_api_key_auth=UserAPIKeyAuth(api_key="sk-litellm"),
)
caller: Final = ListedToolsCaller(mcp_auth_header="Bearer hdr")
listed = manager.get_listed_tool(server, "turn", caller)
assert listed is not None and listed.description == "t"
assert manager._create_mcp_client.await_args.kwargs["mcp_auth_header"] == "Bearer hdr"
@pytest.mark.parametrize(