litellm/tests/unit/llms/databricks
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
..
agent feat(agents): support Databricks Agent Platform agents in the agent gateway (#45681) 2026-10-15 12:42:06 -07:00
chat fix(anthropic)!: map reasoning effort none to supported thinking modes (#55848) 2026-12-02 23:33:35 +00:00
decisions fix(databricks): reuse base OAuth for decisions (#48395) (#48527) 2026-10-26 20:18:16 -07:00
messages fix(bedrock,databricks): forward the server-side-fallback beta and drop it under drop_params where the model lacks it (#53857) 2026-11-24 03:09:16 +00:00
responses test(unit): make every tests/unit directory a package so pytest collection is unique 2026-09-20 11:50:59 +00:00
__init__.py test(unit): make every tests/unit directory a package so pytest collection is unique 2026-09-20 11:50:59 +00:00
test_databricks_common_utils.py fix(databricks): reuse base OAuth for decisions (#48395) (#48527) 2026-10-26 20:18:16 -07:00
test_databricks_partner_integration.py feat(agents): support Databricks Agent Platform agents in the agent gateway (#45681) 2026-10-15 12:42:06 -07:00
test_databricks_streaming_utils.py fix(openai_like): end an async stream cleanly when the connection drops after the finish (#54565) 2026-11-26 07:48:41 +00:00