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: pass organization_ids=None in get_users test calls
yuneng-jiang3a1ac964f7a4
diff --git a/tests/test_litellm/proxy/management_endpoints/test_internal_user_endpoints.py b/tests/test_litellm/proxy/management_endpoints/test_internal_user_endpoints.pyindex e80df5b875e..fa00fe614aa 100644--- a/tests/test_litellm/proxy/management_endpoints/test_internal_user_endpoints.py+++ b/tests/test_litellm/proxy/management_endpoints/test_internal_user_endpoints.py@@ -502,7 +502,7 @@ async def test_get_users_includes_timestamps(mocker):# Call get_users function directly with proxy admin authadmin_key = UserAPIKeyAuth(user_id="admin", user_role=LitellmUserRoles.PROXY_ADMIN)- response = await get_users(page=1, page_size=1, user_api_key_dict=admin_key)+ response = await get_users(page=1, page_size=1, user_api_key_dict=admin_key, organization_ids=None)print("user /list response: ", response)@@ -1427,7 +1427,7 @@ async def test_get_users_user_id_partial_match(mocker):admin_key = UserAPIKeyAuth(user_id="admin", user_role=LitellmUserRoles.PROXY_ADMIN)captured_where_conditions.clear()- await get_users(user_ids="test-user", page=1, page_size=1, user_api_key_dict=admin_key)+ await get_users(user_ids="test-user", page=1, page_size=1, user_api_key_dict=admin_key, organization_ids=None)assert "user_id" in captured_where_conditionsassert "contains" in captured_where_conditions["user_id"]@@ -1435,7 +1435,7 @@ async def test_get_users_user_id_partial_match(mocker):assert captured_where_conditions["user_id"]["mode"] == "insensitive"captured_where_conditions.clear()- await get_users(user_ids="user1,user2,user3", page=1, page_size=1, user_api_key_dict=admin_key)+ await get_users(user_ids="user1,user2,user3", page=1, page_size=1, user_api_key_dict=admin_key, organization_ids=None)assert "user_id" in captured_where_conditionsassert "in" in captured_where_conditions["user_id"]