mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
Update tests/test_litellm/proxy/_experimental/mcp_server/test_byok_oauth_endpoints.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
4a950c1975
commit
49fce3404b
1 changed files with 3 additions and 2 deletions
|
|
@ -475,8 +475,9 @@ async def test_check_byok_credential_missing_credential():
|
|||
mock_prisma = MagicMock()
|
||||
|
||||
with patch(
|
||||
"litellm.proxy._experimental.mcp_server.db.has_user_credential",
|
||||
new=AsyncMock(return_value=False),
|
||||
"litellm.proxy._experimental.mcp_server.db.get_user_credential",
|
||||
new=AsyncMock(return_value=None),
|
||||
), patch("litellm.proxy.proxy_server.prisma_client", mock_prisma):
|
||||
), patch("litellm.proxy.proxy_server.prisma_client", mock_prisma):
|
||||
with pytest.raises(HTTPException) as exc_info:
|
||||
await _check_byok_credential(server, user_auth)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue