mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix(tests): restore litellm.callbacks in TestSpendLogsPayload setup/teardown
This commit is contained in:
parent
7c8f2274ca
commit
8bf5601ceb
1 changed files with 6 additions and 0 deletions
|
|
@ -1211,6 +1211,12 @@ async def _wait_for_mock_call(mock, timeout=10, interval=0.1):
|
|||
|
||||
|
||||
class TestSpendLogsPayload:
|
||||
def setup_method(self):
|
||||
self._original_callbacks = litellm.callbacks[:]
|
||||
|
||||
def teardown_method(self):
|
||||
litellm.callbacks = self._original_callbacks
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_spend_logs_payload_e2e(self):
|
||||
litellm.callbacks = [_ProxyDBLogger(message_logging=False)]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue