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]

test add clear_existing_callbacks

Ishaan Jaff9cc144e3cbdb
diff --git a/tests/test_litellm/proxy/management_endpoints/test_callback_management_endpoints.py b/tests/test_litellm/proxy/management_endpoints/test_callback_management_endpoints.py
index bb622304ef0..7e6c1b4233e 100644
--- a/tests/test_litellm/proxy/management_endpoints/test_callback_management_endpoints.py
+++ b/tests/test_litellm/proxy/management_endpoints/test_callback_management_endpoints.py
@@ -20,6 +20,10 @@ from litellm.proxy.management_endpoints.callback_management_endpoints import rou
from litellm.proxy.proxy_server import app
[email protected](autouse=True, scope="session")
+def clear_existing_callbacks():
+ litellm.logging_callback_manager._reset_all_callbacks()
+
class TestCallbackManagementEndpoints:
"""Test suite for callback management endpoints"""