test(bedrock): recalculate fallback cost after metadata updates

This commit is contained in:
Joshua Valluru 2026-10-19 16:45:55 -07:00
parent 477e7023d7
commit 4744f4b621

View file

@ -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: