From db2bc491d2c76dffe80c4c556c8ca8df44b2a4de Mon Sep 17 00:00:00 2001 From: Sameer Kankute Date: Mon, 22 Jun 2026 19:40:58 +0530 Subject: [PATCH] test(proxy): opt in to expose_fallback_errors_to_caller in streaming SSE test The operator gate added in e7ff3e1 means include_fallback_errors is only honoured when general_settings.expose_fallback_errors_to_caller is True. Set that flag via monkeypatch in the test that exercises the emit path. --- tests/test_litellm/proxy/proxy_server/test_streaming_helpers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_litellm/proxy/proxy_server/test_streaming_helpers.py b/tests/test_litellm/proxy/proxy_server/test_streaming_helpers.py index 865d733b954..699606b5277 100644 --- a/tests/test_litellm/proxy/proxy_server/test_streaming_helpers.py +++ b/tests/test_litellm/proxy/proxy_server/test_streaming_helpers.py @@ -751,6 +751,7 @@ async def test_async_data_generator_switches_model_mid_stream_on_fallback(monkey @pytest.mark.asyncio async def test_async_data_generator_emits_fallback_error_metadata_event(monkeypatch): _patch_logging_flags(monkeypatch) + monkeypatch.setitem(ps.general_settings, "expose_fallback_errors_to_caller", True) fallback_errors = [ {