forked from phoenix/litellm-mirror
(test) reset callbacks in completion()
This commit is contained in:
parent
1d42967725
commit
01d5875426
1 changed files with 7 additions and 0 deletions
|
@ -21,6 +21,13 @@ messages = [{"content": user_message, "role": "user"}]
|
|||
def logger_fn(user_model_dict):
|
||||
print(f"user_model_dict: {user_model_dict}")
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def reset_callbacks():
|
||||
print("\npytest fixture - resetting callbacks")
|
||||
litellm.success_callback = []
|
||||
litellm._async_success_callback = []
|
||||
litellm.failure_callback = []
|
||||
litellm.callbacks = []
|
||||
|
||||
def test_completion_custom_provider_model_name():
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue