litellm/tests/unit/containers
Kerry Lu 00dcb76835
refactor(cost): consolidate pricing modules (#56131)
* refactor(cost): split chat, image, and video calculators

* refactor(cost): preserve helper exports without redundant aliases

* refactor(cost): consolidate pricing by operation

* fix(cost): keep normalized usage as a mapping

* style(cost): sort image pricing imports

* refactor(cost): restore the original token pricing flow

* docs(cost): point contributors to token pricing dispatch

* fix(cost): clear the recursion flag and the banned import count

The refusal helper imported the provider check under its own name, which the recursion detector read as a self call. The realtime split helper now lives next to the realtime processor, and the decisions rate merge goes through one shared helper, so the cost package adds no new typing.cast imports.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test(bedrock): call cost_per_token through the litellm package

litellm.cost.calculator is not loaded by importing litellm, so the two cache billing tests failed with an AttributeError before reaching the cost check.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-12-04 23:14:04 +00:00
..
__init__.py test: move tests/test_litellm root and small trees into tests/unit (#43186) 2026-09-25 11:30:43 -07:00
test_azure_container_transformation.py refactor(router): delete the python router core, the rust core is the only core (#50178) 2026-11-05 10:40:46 -08:00
test_container_api.py refactor: expose core private helpers under public names (#44871) 2026-10-07 00:05:27 +00:00
test_container_handler_url.py test: move tests/test_litellm root and small trees into tests/unit (#43186) 2026-09-25 11:30:43 -07:00
test_container_integration.py refactor(llms): expose public names for private provider helpers (#45037) 2026-10-07 08:49:25 -07:00
test_container_proxy_ownership.py refactor(typing): clear 1181 basedpyright Any errors across 431 files (#47789) 2026-10-24 11:31:09 -07:00
test_container_regional_api_base.py test: move tests/test_litellm root and small trees into tests/unit (#43186) 2026-09-25 11:30:43 -07:00
test_container_transformation.py refactor(cost): consolidate pricing modules (#56131) 2026-12-04 23:14:04 +00:00
test_container_utils.py refactor: expose core private helpers under public names (#44871) 2026-10-07 00:05:27 +00:00
test_endpoint_factory.py test: catch regressions in the validation lines #44798 added (#47420) 2026-10-20 01:06:37 +00:00