litellm/tests/router_unit_tests
AlexsanderHamir 97ed3d01ec test(router): update error message assertion after string concat optimization
Update test_generate_model_id_with_deployment_model_name to accept the new
error message format that results from the list+join optimization.

The function still correctly rejects None values with a TypeError, but the
error message changed from 'unsupported operand type(s) for +=' to
'expected str instance, NoneType found' due to the implementation change
from string concatenation to list joining.
2025-10-15 15:58:08 -07:00
..
conftest.py [Perf] Improvements for Async Success Handler (Logging Callbacks) - Approx +130 RPS (#13905) 2025-08-23 13:13:23 -07:00
create_mock_standard_logging_payload.py
gettysburg.wav
README.md
test_router_adding_deployments.py Support env var vertex credentials for passthrough + ignore space id on watsonx deployment (throws Json validation errors) (#11527) 2025-06-07 20:31:05 -07:00
test_router_batch_utils.py fix(vertexai-batch): fix vertexai batch file format (#13576) 2025-08-18 10:19:23 -07:00
test_router_cooldown_utils.py formatting 2025-10-08 14:15:15 +02:00
test_router_endpoints.py [Perf] Improvements for Async Success Handler (Logging Callbacks) - Approx +130 RPS (#13905) 2025-08-23 13:13:23 -07:00
test_router_handle_error.py fix(handle_error.py): add unit tests 2025-08-11 18:25:30 -07:00
test_router_helper_utils.py test(router): update error message assertion after string concat optimization 2025-10-15 15:58:08 -07:00
test_router_index_management.py [Fix] - Router: add model_name index for O(1) deployment lookups (#15113) 2025-10-06 08:14:11 -07:00
test_router_prompt_caching.py

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.