mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-30 03:00:41 -04:00
fix(preview): format service_unit_test and platform_cost_test
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user