From 4744f4b621d04f3d3e43bca30ccf6c916ae2da38 Mon Sep 17 00:00:00 2001 From: Joshua Valluru <326636767+joshua-berri@users.noreply.github.com> Date: Mon, 19 Oct 2026 16:45:55 -0700 Subject: [PATCH] test(bedrock): recalculate fallback cost after metadata updates --- tests/unit/test_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test_main.py b/tests/unit/test_main.py index f0174298441..5b44cc926f0 100644 --- a/tests/unit/test_main.py +++ b/tests/unit/test_main.py @@ -9039,7 +9039,7 @@ async def test_converse_fallback_prices_the_current_attempt( active_logging: Final = response.logging_obj if stream else logging_obj assert active_logging.response_cost_calculator(result) == pytest.approx(expected) active_logging.update_environment_variables(litellm_params={}, optional_params={}) - assert active_logging.response_cost_calculator(result) == pytest.approx(expected) + assert active_logging.response_cost_calculator(result, ignore_stamped_cost=True) == pytest.approx(expected) if asynchronous: await client.close() else: