From 9cc144e3cbdb69930194c6524fa18dea0b426ea4 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Thu, 3 Jul 2025 12:00:36 -0700 Subject: [PATCH] test add clear_existing_callbacks --- .../test_callback_management_endpoints.py | 4 ++++ 1 file changed, 4 insertions(+) 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 +@pytest.fixture(autouse=True, scope="session") +def clear_existing_callbacks(): + litellm.logging_callback_manager._reset_all_callbacks() + class TestCallbackManagementEndpoints: """Test suite for callback management endpoints"""