mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-05 07:37:50 +00:00
test(mcp): annotate signer-guard tests for the test-quality gate
This commit is contained in:
parent
b82ec46cf7
commit
b2566d0cc5
1 changed files with 6 additions and 2 deletions
|
|
@ -65,7 +65,9 @@ def test_server_credential_occupies_authorization(auth_type, token, header, expe
|
|||
|
||||
@pytest.mark.asyncio
|
||||
@pytest.mark.parametrize("auth_type", AUTHORIZATION_AUTH_TYPES)
|
||||
async def test_tools_list_skips_signer_when_server_key_rides_authorization(auth_type):
|
||||
async def test_tools_list_skips_signer_when_server_key_rides_authorization( # test-quality-ok: signer is a process-wide singleton with no injection seam; the hook call is the observable
|
||||
auth_type,
|
||||
):
|
||||
manager = MCPServerManager()
|
||||
manager.create_mcp_client = AsyncMock(return_value=object())
|
||||
manager._fetch_tools_with_timeout = AsyncMock(return_value=[])
|
||||
|
|
@ -96,7 +98,9 @@ async def test_tools_list_skips_signer_when_server_key_rides_authorization(auth_
|
|||
),
|
||||
],
|
||||
)
|
||||
async def test_tools_list_still_runs_signer_when_authorization_is_free(server):
|
||||
async def test_tools_list_still_runs_signer_when_authorization_is_free( # test-quality-ok: signer is a process-wide singleton with no injection seam; the hook call is the observable
|
||||
server,
|
||||
):
|
||||
manager = MCPServerManager()
|
||||
manager.create_mcp_client = AsyncMock(return_value=object())
|
||||
manager._fetch_tools_with_timeout = AsyncMock(return_value=[])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue