From d9020795dd4f7feb74c17d3c6f962c7ccd712d67 Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Thu, 13 Aug 2026 10:13:40 -0700 Subject: [PATCH] test: use _local_model_cost_map fixture in gemini 3.7 flash pricing tests --- .../llm_cost_calc/test_llm_cost_calc_utils.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tests/test_litellm/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.py b/tests/test_litellm/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.py index c502a728835..fecbdcd4445 100644 --- a/tests/test_litellm/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.py +++ b/tests/test_litellm/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.py @@ -2913,10 +2913,7 @@ GEMINI_37_FLASH_LAUNCH_PRICING = [ @pytest.mark.parametrize("model,input_cost,output_cost,cache_read_cost", GEMINI_37_FLASH_LAUNCH_PRICING) -def test_gemini_37_flash_launch_pricing(model, input_cost, output_cost, cache_read_cost): - os.environ["LITELLM_LOCAL_MODEL_COST_MAP"] = "True" - litellm.model_cost = litellm.get_model_cost_map(url="") - +def test_gemini_37_flash_launch_pricing(model, input_cost, output_cost, cache_read_cost, _local_model_cost_map): model_cost_map = litellm.model_cost[model] assert model_cost_map["input_cost_per_token"] == input_cost assert model_cost_map["output_cost_per_token"] == output_cost @@ -2928,10 +2925,7 @@ def test_gemini_37_flash_launch_pricing(model, input_cost, output_cost, cache_re assert model_cost_map["max_input_tokens"] == 1048576 -def test_generic_cost_per_token_gemini_37_flash(): - os.environ["LITELLM_LOCAL_MODEL_COST_MAP"] = "True" - litellm.model_cost = litellm.get_model_cost_map(url="") - +def test_generic_cost_per_token_gemini_37_flash(_local_model_cost_map): usage = Usage( prompt_tokens=1000, completion_tokens=500,