From 8534bf96d5f42b35a522da92a383c8ab82082cb2 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Tue, 21 Nov 2023 08:18:04 -0800 Subject: [PATCH] test(test_rules.py): clear rules after test completes --- litellm/tests/test_rules.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/litellm/tests/test_rules.py b/litellm/tests/test_rules.py index 742d9d062e..c63e617f36 100644 --- a/litellm/tests/test_rules.py +++ b/litellm/tests/test_rules.py @@ -44,6 +44,7 @@ def test_pre_call_rule(): except Exception as e: pass asyncio.run(test_async_response()) + litellm.pre_call_rules = [] # test_pre_call_rule() ## Test 2: Post-call rule @@ -70,5 +71,7 @@ def test_post_call_rule(): except Exception as e: pass asyncio.run(test_async_response()) + litellm.pre_call_rules = [] + litellm.post_call_rules = [] # test_post_call_rule() \ No newline at end of file