diff --git a/litellm/tests/test_proxy_server_keys.py b/litellm/tests/test_proxy_server_keys.py index db083c30c7..ace3c5527f 100644 --- a/litellm/tests/test_proxy_server_keys.py +++ b/litellm/tests/test_proxy_server_keys.py @@ -37,6 +37,8 @@ async def wrapper_startup_event(): # Make sure the fixture returns TestClient(app) @pytest.fixture(autouse=True) def client(): + from litellm.proxy.proxy_server import cleanup_router_config_variables + cleanup_router_config_variables() with TestClient(app) as client: yield client