litellm/tests/test_litellm/interactions
yuneng-jiang 322293ad95
test(interactions): drop the save/restore scaffolding around the legacy flag (#37841)
Seven tests captured litellm.use_legacy_interactions_schema, wrapped their body
in a try, and put it back in a finally. monkeypatch.setattr does that, so the
capture, the try and the finally go and the bodies lose an indentation level.

The remaining hand-rolled restores stay. They hold the flag only across the
iterator's constructor and put it back before the test iterates, so handing
them to monkeypatch would widen that window to the whole test and change what
the streaming assertions run against.
2026-08-21 22:43:03 -07:00
..
base_interactions_test.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_agents_http_handler.py Gemini managed agents support (#28270) 2026-05-19 16:02:03 -07:00
test_agents_main_and_utils.py test(lint): ban blind pytest.raises(Exception) with ruff B017 (#37731) 2026-08-20 18:09:42 -07:00
test_gemini_interactions.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_gemini_interactions_transformation.py test(interactions): drop the save/restore scaffolding around the legacy flag (#37841) 2026-08-21 22:43:03 -07:00
test_google_interactions_integration.py test(lint): ban blind pytest.raises(Exception) with ruff B017 (#37731) 2026-08-20 18:09:42 -07:00
test_interactions_streaming_iterator.py fix(responses): stop scheduling sync success_handler concurrently with async_success_handler (#32239) 2026-07-07 09:13:50 -07:00
test_litellm_responses_bridge.py fix(interactions): map step and turn input to Responses API roles and content types 2026-08-12 21:47:00 -07:00
test_openapi_compliance.py test(interactions): follow Google spec drift replacing Turn with typed steps 2026-08-12 21:47:33 -07:00