From c735cc3db14e357be69c8e9be51455f212320920 Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Sat, 19 Sep 2026 08:00:12 -0700 Subject: [PATCH] test(cost): point dated snapshot tests at a date the cost map cannot carry The azure row of test_get_model_info_falls_back_from_dated_snapshot_to_undated_entry used gpt-5.6-luna-2026-07-09, which main's cost map carries as an exact azure key, so the lookup returned the dated key and the required misc test job failed on main. All three dated snapshot tests now use a 2099-01-01 snapshot date, so they keep exercising the strip path whatever real snapshots the map gains --- tests/test_litellm/test_cost_calculator.py | 2 +- tests/test_litellm/test_utils.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_litellm/test_cost_calculator.py b/tests/test_litellm/test_cost_calculator.py index 50eec369c07..aef17f3d5d0 100644 --- a/tests/test_litellm/test_cost_calculator.py +++ b/tests/test_litellm/test_cost_calculator.py @@ -113,7 +113,7 @@ def test_completion_cost_uses_response_model_for_dynamic_routing(_local_model_co def test_completion_cost_strips_dated_azure_snapshot_model(_local_model_cost_map: None) -> None: dated_response = ModelResponse( - model="gpt-5.6-luna-2026-07-09", + model="gpt-5.6-luna-2099-01-01", choices=[Choices(index=0, message=Message(role="assistant", content="hi"), finish_reason="stop")], usage=Usage(prompt_tokens=100, completion_tokens=50, total_tokens=150), ) diff --git a/tests/test_litellm/test_utils.py b/tests/test_litellm/test_utils.py index 71af3cf76a6..d2eb40bedca 100644 --- a/tests/test_litellm/test_utils.py +++ b/tests/test_litellm/test_utils.py @@ -186,8 +186,8 @@ def test_get_model_info_strips_openai_finetune_ids_without_a_custom_suffix(local @pytest.mark.parametrize( ("model", "custom_llm_provider", "expected_key"), [ - ("gpt-5.6-luna-2026-07-09", "openai", "gpt-5.6-luna"), - ("gpt-5.6-luna-2026-07-09", "azure", "azure/gpt-5.6-luna"), + ("gpt-5.6-luna-2099-01-01", "openai", "gpt-5.6-luna"), + ("gpt-5.6-luna-2099-01-01", "azure", "azure/gpt-5.6-luna"), ], ) def test_get_model_info_falls_back_from_dated_snapshot_to_undated_entry(