mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 02:34:29 +00:00
test(test_rules.py): clear rules after test completes
This commit is contained in:
parent
2a681c1874
commit
8534bf96d5
1 changed files with 3 additions and 0 deletions
|
@ -44,6 +44,7 @@ def test_pre_call_rule():
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass
|
pass
|
||||||
asyncio.run(test_async_response())
|
asyncio.run(test_async_response())
|
||||||
|
litellm.pre_call_rules = []
|
||||||
|
|
||||||
# test_pre_call_rule()
|
# test_pre_call_rule()
|
||||||
## Test 2: Post-call rule
|
## Test 2: Post-call rule
|
||||||
|
@ -70,5 +71,7 @@ def test_post_call_rule():
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass
|
pass
|
||||||
asyncio.run(test_async_response())
|
asyncio.run(test_async_response())
|
||||||
|
litellm.pre_call_rules = []
|
||||||
|
litellm.post_call_rules = []
|
||||||
|
|
||||||
# test_post_call_rule()
|
# test_post_call_rule()
|
Loading…
Add table
Add a link
Reference in a new issue