fix(tests): restore litellm.callbacks in TestSpendLogsPayload setup/teardown

This commit is contained in:
Ishaan Jaffer 2026-02-21 11:27:19 -08:00
parent 7c8f2274ca
commit 8bf5601ceb

View file

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