litellm/tests/test_litellm/llms/gemini
Cursor Agent 9a356644bf
fix(tests): stabilize 3 failing CI tests
1. Add missing __init__.py files in tests/test_litellm/llms/gemini/ and
   subdirectories (realtime/, image_edit/) to fix ModuleNotFoundError
   with pytest-xdist parallel workers.

2. Update test_transform_request_uses_dynamic_max_tokens to use
   claude-3-7-sonnet-20250219 (max_output_tokens=64000) since
   claude-3-5-sonnet-20241022 was removed from model_prices JSON
   during deprecated model cleanup. The test assertion was outdated.

3. Update context caching TTL tests to use gemini-2.5-pro instead of
   gemini-1.5-pro. The old model was removed from model_prices JSON,
   causing supports_system_messages to return False, which prevented
   system_instruction from appearing in the transformation output.

Co-authored-by: yuneng-jiang <yuneng-jiang@users.noreply.github.com>
2026-03-13 00:26:31 +00:00
..
files Add get files API support and tests 2026-02-03 18:57:39 +05:30
image_edit fix(tests): stabilize 3 failing CI tests 2026-03-13 00:26:31 +00:00
realtime fix(tests): stabilize 3 failing CI tests 2026-03-13 00:26:31 +00:00
videos fix(ci): fix ruff lint errors and 9 failing unit tests on main 2026-03-12 19:58:43 +00:00
__init__.py fix(tests): stabilize 3 failing CI tests 2026-03-13 00:26:31 +00:00
test_gemini_client_setup.py Fix/gemini api key environment variable support (#12507) 2025-07-29 15:56:01 -07:00
test_gemini_common_utils.py Fix gemini cli error (#14417) 2025-09-12 11:56:51 -07:00
test_gemini_tts.py fix: add speechConfig to GenerationConfig for Gemini TTS (#17851) 2025-12-12 03:56:44 -08:00