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.
This commit is contained in:
Sameer Kankute 2026-06-22 19:40:58 +05:30
parent e7ff3e1567
commit db2bc491d2
No known key found for this signature in database

View file

@ -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 = [
{