litellm/tests/router_unit_tests
user 5bafa8b3a2
Drop dep bumps + black-26 reformat to clear fork CI policy
PR was blocked by .github/workflows/guard-fork-dependencies.yml: fork PRs
cannot modify uv.lock. Reverting:

- uv.lock + pyproject.toml black bump (24.10.0 -> 26.3.1) and the 295
  files of mechanical Black 26 reformat coupled to it
- pyproject.toml diskcache extra change (kept the runtime mitigation in
  litellm/caching/disk_cache.py via JSONDisk)

Kept:
- Dockerfile cache narrowing (drops ~660 MB of uv build cache that
  surfaced cached setuptools as CVE findings)
- litellm/caching/disk_cache.py: dc.JSONDisk to neutralize CVE-2025-69872
- ui/litellm-dashboard/package-lock.json + litellm-js/spend-logs/package-lock.json:
  next/postcss/hono/uuid CVE bumps (these are not blocked by the fork guard)
- tests/test_litellm/caching/test_disk_cache.py
- tests/code_coverage_tests/liccheck.ini: harmless black authorization

Black + gitpython + langchain dep upgrades will need a follow-up from a
maintainer pushing a branch in the canonical BerriAI/litellm repo.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-07 23:04:52 +00:00
..
conftest.py test: add 24hr Redis-backed VCR cache to additional test suites (#27159) 2026-05-05 15:13:31 -07:00
create_mock_standard_logging_payload.py Drop dep bumps + black-26 reformat to clear fork CI policy 2026-05-07 23:04:52 +00:00
gettysburg.wav
README.md
test_completion_no_copy.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_default_deployment_copy.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_get_model_list_alias_optimization.py fix(router): address remaining Greptile review comments 2026-03-27 20:11:28 +05:30
test_pre_call_checks_optimization.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_prompt_management_check.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_router_acancel_batch.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_router_adding_deployments.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_router_batch_utils.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_router_cooldown_utils.py fix(router): add minimum request threshold for error rate cooldown (#17464) 2025-12-12 04:36:10 -08:00
test_router_embedding_headers.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_router_embedding_integration.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_router_endpoints.py fix(router): apply decoded provider for managed container IDs without model_id 2026-04-30 21:29:38 +00:00
test_router_handle_error.py Drop dep bumps + black-26 reformat to clear fork CI policy 2026-05-07 23:04:52 +00:00
test_router_helper_utils.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_router_index_management.py Merge branch 'litellm_internal_staging' into litellm_adaptive_routing 2026-04-20 15:28:08 -07:00
test_router_prompt_caching.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00

Router component unit tests.

Please name all files with the word 'router' in them.

This is used to ensure all functions in the router are tested.