litellm/tests/unit/test_router
Nate Armstrong 71120e1fcd fix(router): compare the proxy router by backend identity after the facade split
The backend passes itself, not the facade, into helpers like cache-aware routing, so the
`proxy_server.llm_router is router` check never matched and cache-aware routing turned
itself off. Tests asserting router identity or reading backend-only state now go through
`router.backend`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VBPzD1X9jBTmKn6ypDQQTY
2026-10-06 17:31:39 -07:00
..
__init__.py test: add __init__.py to every tests/unit directory phase 16 touches 2026-09-20 11:52:38 +00:00
test_enforce_model_rate_limits.py test: migrate phase 16 legacy tests to tests/unit 2026-09-20 10:59:02 +00:00
test_io_token_rate_limits.py test: migrate phase 16 legacy tests to tests/unit 2026-09-20 10:59:02 +00:00
test_router.py fix(router): compare the proxy router by backend identity after the facade split 2026-10-06 17:31:39 -07:00