test(test_rules.py): clear rules after test completes

This commit is contained in:
Krrish Dholakia 2023-11-21 08:18:04 -08:00
parent 2a681c1874
commit 8534bf96d5

View file

@ -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()