The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(tests): use AsyncMock for prisma find_unique in agent get-by-id test (#23122)
Joe Reyna0bc1bd6871a4
diff --git a/tests/test_litellm/proxy/agent_endpoints/test_endpoints.py b/tests/test_litellm/proxy/agent_endpoints/test_endpoints.pyindex 00d08504fe5..3c8e1c75559 100644--- a/tests/test_litellm/proxy/agent_endpoints/test_endpoints.py+++ b/tests/test_litellm/proxy/agent_endpoints/test_endpoints.py@@ -295,6 +295,9 @@ class TestAgentRBACInternalUser:return_value=_sample_agent_response())with patch("litellm.proxy.proxy_server.prisma_client") as mock_prisma:+ mock_prisma.db.litellm_agentstable.find_unique = AsyncMock(+ return_value=None+ )resp = self.internal_client.get("/v1/agents/agent-123", headers={"Authorization": "Bearer k"})