litellm/tests/unit/test_router
narmstrong-berry 1a7deafe09
fix(router): match the python core on the build 73 fuzz differences
- deprecated registry members called with a None name read the registry source directly again,
  as they did before registry() existed, so both cores return the old empty result instead of
  registry()'s TypeError (get_model_group, resolve_served_model_name, get_model_from_alias,
  get_routable_upstream_model, get_candidate_model_ids_for_route, get_remaining_model_group_usage)
- rust core keeps retry_after, timeout, num_retries, allowed_fails and max_fallbacks as given, as the
  python core stores them; update_settings casts to int as python does; the crate reads them as numbers
- rust core adds the {"*": ...} fallback entry whenever default_fallbacks is given, even empty
- rust core passes the configured model_name to deployment ids and deployments as given and logs the
  group names after set_model_list, so a non-string model_name and an alias without hidden fail as
  they do on the python core
2026-11-02 03:48:00 +00:00
..
core fix(router): match the python core on the build 73 fuzz differences 2026-11-02 03:48:00 +00:00
__init__.py
test_enforce_model_rate_limits.py feat(router): daily_reset_time picks when deployment rpd and tpd daily limits start over (#48957) 2026-10-28 20:20:01 -07:00
test_io_token_rate_limits.py fix(router)!: check and count deployment itpm and otpm on every Responses WebSocket turn (#49069) 2026-10-30 07:48:32 -07:00
test_router.py fix(router): bind and dispatch every factory endpoint from one table through host.invoke on both cores 2026-11-02 02:52:28 +00:00
test_router_callback_hook_sequence.py test: replace 61 live logging and otel tests with offline unit and integration coverage (#45362) 2026-10-08 15:55:57 -07:00
test_router_endpoints.py fix(router): bind and dispatch every factory endpoint from one table through host.invoke on both cores 2026-11-02 02:52:28 +00:00
test_router_entry_points.py refactor(router): extract PythonCore behind RouterCore and pass the router its config (#49119) 2026-10-31 12:54:23 -07:00
test_router_facade.py refactor(router): extract PythonCore behind RouterCore and pass the router its config (#49119) 2026-10-31 12:54:23 -07:00
test_router_fallbacks.py fix(router): recover streamed context window errors before output (#49293) 2026-10-30 13:19:58 -07:00
test_router_get_deployments.py fix(count_tokens): apply context_management edits in the Gemini /v1/messages/count_tokens count (#46843) 2026-10-16 17:53:06 +00:00
test_router_helper_utils.py refactor(router): extract PythonCore behind RouterCore and pass the router its config (#49119) 2026-10-31 12:54:23 -07:00
test_router_host.py refactor(router): move router callers onto the entry points and invert the proxy imports (#48847) 2026-10-29 17:26:33 +00:00
test_router_max_parallel_requests.py test: move routing, caching and callback tests out of local_testing (#45761) 2026-10-10 09:33:09 -07:00
test_router_provider_endpoints.py refactor(router): extract PythonCore behind RouterCore and pass the router its config (#49119) 2026-10-31 12:54:23 -07:00
test_router_retries.py test: move routing, caching and callback tests out of local_testing (#45761) 2026-10-10 09:33:09 -07:00
test_router_surface_check.py refactor(router): fence the router surface and document the router-core boundary (#48839) 2026-10-29 00:01:52 +00:00
test_router_timeout.py feat(router): let a deployment set a timeout per service_tier (#47406) 2026-10-19 14:27:29 -07:00
test_router_vector_store_endpoints.py test: migrate SDK and proxy-booting legacy CircleCI tests to their tiers (#45758) 2026-10-11 00:17:21 -07:00