fix(preview): format service_unit_test and platform_cost_test

This commit is contained in:
majdyz
2026-04-14 13:28:30 +07:00
parent 58ecb51987
commit dbc5d3dfae
2 changed files with 1 additions and 2 deletions

View File

@@ -819,7 +819,6 @@ class TestBaselineCostExtraction:
# response was never assigned so cost extraction must not raise
assert state.cost_usd is None
async def test_cost_estimated_from_tokens_when_header_missing(self):
"""cost_usd is estimated from token counts when x-total-cost is absent."""
from backend.copilot.baseline.service import (
@@ -1026,6 +1025,7 @@ class TestBaselineCostExtraction:
assert state.turn_prompt_tokens == 2100
assert state.turn_completion_tokens == 500
class TestMidLoopPendingFlushOrdering:
"""Regression test for the mid-loop pending drain ordering invariant.

View File

@@ -37,7 +37,6 @@ class TestUsdToMicrodollars:
def test_positive_value(self):
assert usd_to_microdollars(0.001) == 1000
def test_large_value(self):
assert usd_to_microdollars(1.0) == 1_000_000