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 test_allow_access_by_email
Sameer Kankute288f7b860cb1
diff --git a/tests/proxy_unit_tests/test_jwt.py b/tests/proxy_unit_tests/test_jwt.pyindex 2af61aa2653..f64ab888e20 100644--- a/tests/proxy_unit_tests/test_jwt.py+++ b/tests/proxy_unit_tests/test_jwt.py@@ -923,10 +923,19 @@ def public_jwt_key():return {"private_key": private_key, "public_jwk": public_jwk}-def mock_user_object(*args, **kwargs):+async def mock_user_object(*args, **kwargs):print("Args: {}".format(args))print("kwargs: {}".format(kwargs))assert kwargs["user_id_upsert"] is True+ # Return a mock user object+ user_id = kwargs.get("user_id")+ user_email = kwargs.get("user_email")+ return LiteLLM_UserTable(+ spend=0,+ user_id=user_id,+ max_budget=None,+ user_email=user_email+ )@pytest.mark.parametrize(