mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
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:
parent
e7ff3e1567
commit
db2bc491d2
1 changed files with 1 additions and 0 deletions
|
|
@ -751,6 +751,7 @@ async def test_async_data_generator_switches_model_mid_stream_on_fallback(monkey
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
async def test_async_data_generator_emits_fallback_error_metadata_event(monkeypatch):
|
async def test_async_data_generator_emits_fallback_error_metadata_event(monkeypatch):
|
||||||
_patch_logging_flags(monkeypatch)
|
_patch_logging_flags(monkeypatch)
|
||||||
|
monkeypatch.setitem(ps.general_settings, "expose_fallback_errors_to_caller", True)
|
||||||
|
|
||||||
fallback_errors = [
|
fallback_errors = [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue