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: fix test_key_generation_with_object_permission
Ishaan Jaff711c931c7193
diff --git a/tests/test_litellm/proxy/management_endpoints/test_key_management_endpoints.py b/tests/test_litellm/proxy/management_endpoints/test_key_management_endpoints.pyindex 27d2828201a..755b833486a 100644--- a/tests/test_litellm/proxy/management_endpoints/test_key_management_endpoints.py+++ b/tests/test_litellm/proxy/management_endpoints/test_key_management_endpoints.py@@ -217,7 +217,7 @@ async def test_key_generation_with_object_permission(monkeypatch):# --- Import objects after monkeypatching ---from litellm.proxy._types import (GenerateKeyRequest,- LiteLLM_ObjectPermissionTable,+ LiteLLM_ObjectPermissionBase,LitellmUserRoles,)from litellm.proxy.auth.user_api_key_auth import UserAPIKeyAuth@@ -227,7 +227,7 @@ async def test_key_generation_with_object_permission(monkeypatch):# --- Call generate_key_fn with object_permission ---request_data = GenerateKeyRequest(- object_permission=LiteLLM_ObjectPermissionTable(vector_stores=["my-vector"])+ object_permission=LiteLLM_ObjectPermissionBase(vector_stores=["my-vector"]))await generate_key_fn(diff --git a/tests/test_litellm/proxy/management_endpoints/test_team_endpoints.py b/tests/test_litellm/proxy/management_endpoints/test_team_endpoints.pyindex 19256103052..6e641d2e1c0 100644--- a/tests/test_litellm/proxy/management_endpoints/test_team_endpoints.py+++ b/tests/test_litellm/proxy/management_endpoints/test_team_endpoints.py@@ -286,13 +286,13 @@ async def test_new_team_with_object_permission(mock_db_client, mock_admin_auth):# --- Import after mocks applied ---from fastapi import Request- from litellm.proxy._types import LiteLLM_ObjectPermissionTable, NewTeamRequest+ from litellm.proxy._types import LiteLLM_ObjectPermissionBase, NewTeamRequestfrom litellm.proxy.management_endpoints.team_endpoints import new_team# Build request objectsteam_request = NewTeamRequest(team_alias="my-team",- object_permission=LiteLLM_ObjectPermissionTable(vector_stores=["my-vector"]),+ object_permission=LiteLLM_ObjectPermissionBase(vector_stores=["my-vector"]),)# Pass a dummy FastAPI Request object