mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
test: allow callback state fixture mutation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
3dea586d3b
commit
70a4f74a0d
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ from litellm.types.router import RetryPolicy, UpdateRouterConfig
|
|||
def isolate_litellm_callbacks():
|
||||
callbacks_before: Final = litellm.callbacks.copy()
|
||||
yield
|
||||
litellm.callbacks = callbacks_before
|
||||
litellm.callbacks = callbacks_before # test-quality-ok: required callback-state restoration fixture
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue