From c4d2f033c7b767e30137d4869050e1c2ace767db Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Sat, 29 Aug 2026 21:30:27 -0700 Subject: [PATCH] test(savings): pin the local cost map on the no-cache-read baseline test --- tests/test_litellm/proxy/spend_tracking/test_savings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_litellm/proxy/spend_tracking/test_savings.py b/tests/test_litellm/proxy/spend_tracking/test_savings.py index 5fda4fb20b5..dac6a19948a 100644 --- a/tests/test_litellm/proxy/spend_tracking/test_savings.py +++ b/tests/test_litellm/proxy/spend_tracking/test_savings.py @@ -754,7 +754,7 @@ def test_a_baseline_that_prices_caching_implicitly_still_pays_for_its_prompt(): assert reported > 0, "routing a cold first turn onto a cheaper model is a saving, not a loss" -def test_a_baseline_with_no_cache_read_rate_is_charged_its_input_rate(): +def test_a_baseline_with_no_cache_read_rate_is_charged_its_input_rate(local_model_cost_map): """The same hole on the other bucket. A baseline whose entry has no `cache_read_input_token_cost` reads for 0.0, so a continuing turn priced the whole prompt at nothing and every switch away from it reported a loss.