mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-04 01:06:45 +00:00
e242356570
Lint fixes (check_code_and_doc_quality job): - Remove unused variable reasoning_effort in gpt_5_transformation.py (F841) - Remove unused timezone imports in mcp_server rest_endpoints.py and server.py (F401) - Remove unused ProxyBaseLLMRequestProcessing import in realtime endpoints.py (F401) - Add BaseRealtimeHTTPConfig to TYPE_CHECKING block in utils.py (F821) - Add PLR0915 per-file-ignore for mcp_server/rest_endpoints.py in ruff.toml Test fixes (litellm_mapped_tests_llms job): - Gemini video cost tests: pass explicit model_info to video_generation_cost() instead of relying on gemini/veo-3.0-generate-preview being in model_prices JSON - Anthropic max_tokens tests: mock get_max_tokens() to return expected values instead of depending on claude-3-5-sonnet-20241022 being in model_prices JSON - Vertex AI pydantic obj test: update from removed gemini-1.5-pro to gemini-2.5-flash, update expected request body to use response_json_schema format - Vertex AI/Bedrock file_content integration tests: update mocks to target base_llm_http_handler.retrieve_file_content (the new code path via ProviderConfigManager) instead of the old vertex_ai_files_instance/ bedrock_files_instance paths Co-authored-by: yuneng-jiang <yuneng-jiang@users.noreply.github.com>
Testing for litellm/
This directory 1:1 maps the the litellm/ directory, and can only contain mocked tests.
The point of this is to:
- Increase test coverage of
litellm/ - Make it easy for contributors to add tests for the
litellm/package and easily run tests without needing LLM API keys.
File name conventions
litellm/proxy/test_caching_routes.pymaps tolitellm/proxy/caching_routes.pytest_<filename>.pymaps tolitellm/<filename>.py