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
test: update tests
Krrish Dholakia3b22fb421559
diff --git a/tests/enterprise/litellm_enterprise/proxy/management_endpoints/test_internal_user_endpoints.py b/tests/enterprise/litellm_enterprise/proxy/management_endpoints/test_internal_user_endpoints.pyindex d69c613a4f5..69c3b4cb59a 100644--- a/tests/enterprise/litellm_enterprise/proxy/management_endpoints/test_internal_user_endpoints.py+++ b/tests/enterprise/litellm_enterprise/proxy/management_endpoints/test_internal_user_endpoints.py@@ -159,27 +159,3 @@ class TestAvailableEnterpriseUsers:CommonProxyErrors.db_not_connected_error.valuein response.json()["detail"]["error"])-- @pytest.mark.asyncio- async def test_available_users_not_premium_user(- self, client, mock_user_api_key_auth- ):- """Test when premium_user is None (not a premium user)"""- from litellm.proxy._types import CommonProxyErrors-- with patch("litellm.proxy.proxy_server.prisma_client") as mock_prisma, patch(- "litellm.proxy.proxy_server.premium_user",- None,- ):- # Override the dependency- client.app.dependency_overrides[mock_user_api_key_auth] = lambda: {- "user_id": "test_user"- }-- response = client.get("/user/available_users")-- assert response.status_code == 500- assert (- CommonProxyErrors.not_premium_user.value- in response.json()["detail"]["error"]- )