mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
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:
parent
c93d88ed79
commit
46cd428b65
1 changed files with 3 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue