Skip to content

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]

fixing tests

yuneng-jiang7307992cea72
diff --git a/tests/proxy_unit_tests/test_auth_checks.py b/tests/proxy_unit_tests/test_auth_checks.py
index 24c005443af..05c6e4984af 100644
--- a/tests/proxy_unit_tests/test_auth_checks.py
+++ b/tests/proxy_unit_tests/test_auth_checks.py
@@ -584,7 +584,7 @@ async def test_get_fuzzy_user_object():
)
assert result == test_user
mock_prisma.db.litellm_usertable.find_first.assert_called_with(
- where={"user_email": "[email protected]"},
+ where={"user_email": {"equals": "[email protected]", "mode": "insensitive"}},
include={"organization_memberships": True},
)
@@ -612,7 +612,7 @@ async def test_get_fuzzy_user_object():
)
assert result == test_user
mock_prisma.db.litellm_usertable.find_first.assert_called_with(
- where={"user_email": "[email protected]"},
+ where={"user_email": {"equals": "[email protected]", "mode": "insensitive"}},
include={"organization_memberships": True},
)