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]

fix: test_init_custom_logger_compatible_class_as_callback

Ishaan Jaffd13117992c40
diff --git a/tests/logging_callback_tests/test_unit_tests_init_callbacks.py b/tests/logging_callback_tests/test_unit_tests_init_callbacks.py
index 71aece04076..d8137e8aa00 100644
--- a/tests/logging_callback_tests/test_unit_tests_init_callbacks.py
+++ b/tests/logging_callback_tests/test_unit_tests_init_callbacks.py
@@ -44,6 +44,7 @@ from litellm.integrations.humanloop import HumanloopLogger
from litellm.proxy.hooks.dynamic_rate_limiter import _PROXY_DynamicRateLimitHandler
from litellm_enterprise.enterprise_callbacks.generic_api_callback import GenericAPILogger
from litellm_enterprise.enterprise_callbacks.send_emails.resend_email import ResendEmailLogger
+from litellm_enterprise.enterprise_callbacks.send_emails.smtp_email import SMTPEmailLogger
from unittest.mock import patch
# clear prometheus collectors / registry
@@ -83,6 +84,7 @@ callback_class_str_to_classType = {
"bedrock_vector_store": BedrockVectorStore,
"generic_api": GenericAPILogger,
"resend_email": ResendEmailLogger,
+ "smtp_email": SMTPEmailLogger,
}
expected_env_vars = {