From 68af9f061c0c66bbe83fbab34dd1259622cff752 Mon Sep 17 00:00:00 2001 From: kerry Date: Tue, 27 Oct 2026 21:54:42 +0000 Subject: [PATCH] test(proxy): type the unpriceable stream bills as floats Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- tests/unit/proxy/test_usage_cost_egress.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/proxy/test_usage_cost_egress.py b/tests/unit/proxy/test_usage_cost_egress.py index 0be4a6b745a..bca4b94c46b 100644 --- a/tests/unit/proxy/test_usage_cost_egress.py +++ b/tests/unit/proxy/test_usage_cost_egress.py @@ -65,8 +65,8 @@ def test_a_zero_bill_replaces_the_upstream_cost() -> None: assert billed.usage is not None and billed.usage.cost == 0.0 -@pytest.mark.parametrize("bill", [None, -0.001, float("nan"), float("inf"), True]) -def test_an_unpriceable_stream_keeps_the_upstream_cost(bill: float | bool | None) -> None: +@pytest.mark.parametrize("bill", [None, -0.001, float("nan"), float("inf")]) +def test_an_unpriceable_stream_keeps_the_upstream_cost(bill: float | None) -> None: chunk: Final = _usage_chunk(UPSTREAM_COST) assert with_client_stream_usage_cost(chunk, lambda _reply: bill) is chunk