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]

Add fix to tests (#12263)

Jugal D. Bhatt5a852ca6472b
diff --git a/tests/test_litellm/enterprise/enterprise_callbacks/send_emails/test_base_email.py b/tests/test_litellm/enterprise/enterprise_callbacks/send_emails/test_base_email.py
index af6411b2413..4fac979ce65 100644
--- a/tests/test_litellm/enterprise/enterprise_callbacks/send_emails/test_base_email.py
+++ b/tests/test_litellm/enterprise/enterprise_callbacks/send_emails/test_base_email.py
@@ -67,8 +67,8 @@ async def test_send_key_created_email(
with mock.patch.dict(
os.environ,
{
- "EMAIL_LOGO_URL": "https://test-logo.com",
- "EMAIL_SUPPORT_CONTACT": "[email protected]",
+ "EMAIL_LOGO_URL": "https://litellm-listing.s3.amazonaws.com/litellm_logo.png",
+ "EMAIL_SUPPORT_CONTACT": "[email protected]",
"PROXY_BASE_URL": "http://test.com",
},
):
@@ -103,8 +103,8 @@ async def test_send_user_invitation_email(
with mock.patch.dict(
os.environ,
{
- "EMAIL_LOGO_URL": "https://test-logo.com",
- "EMAIL_SUPPORT_CONTACT": "[email protected]",
+ "EMAIL_LOGO_URL": "https://litellm-listing.s3.amazonaws.com/litellm_logo.png",
+ "EMAIL_SUPPORT_CONTACT": "[email protected]",
"PROXY_BASE_URL": "http://test.com",
},
):
@@ -140,8 +140,8 @@ async def test_send_user_invitation_email_from_db(
with mock.patch.dict(
os.environ,
{
- "EMAIL_LOGO_URL": "https://test-logo.com",
- "EMAIL_SUPPORT_CONTACT": "[email protected]",
+ "EMAIL_LOGO_URL": "https://litellm-listing.s3.amazonaws.com/litellm_logo.png",
+ "EMAIL_SUPPORT_CONTACT": "[email protected]",
"PROXY_BASE_URL": "http://test.com",
},
):
@@ -360,8 +360,8 @@ async def test_get_email_params_user_invitation(
with mock.patch.dict(
os.environ,
{
- "EMAIL_LOGO_URL": "https://test-logo.com",
- "EMAIL_SUPPORT_CONTACT": "[email protected]",
+ "EMAIL_LOGO_URL": "https://litellm-listing.s3.amazonaws.com/litellm_logo.png",
+ "EMAIL_SUPPORT_CONTACT": "[email protected]",
"PROXY_BASE_URL": "http://test.com",
},
):
@@ -378,8 +378,8 @@ async def test_get_email_params_user_invitation(
user_email="[email protected]",
)
- assert result.logo_url == "https://test-logo.com"
- assert result.support_contact == "[email protected]"
+ assert result.logo_url == "https://litellm-listing.s3.amazonaws.com/litellm_logo.png"
+ assert result.support_contact == "[email protected]"
assert result.base_url == "http://test.com/ui?invitation_id=test-id"
assert result.recipient_email == "[email protected]"