test descriptions
This commit is contained in:
@@ -91,6 +91,7 @@ def _wait_for_price_change(ledger: BillingLedger, model: str, *, timeout: float
|
||||
|
||||
|
||||
def test_refresh_loop_repriced_model_with_curated_alias(pricing_tracker):
|
||||
"Refresh loop repriced model with curated alias\n\nTags: general"
|
||||
tracker_url, ledger, tracker = pricing_tracker
|
||||
new_price = _wait_for_price_change(ledger, PRICED_MODEL)
|
||||
expected = round((0.93 + 3.00) / 2 / 1000 * 0.80, 6)
|
||||
@@ -102,6 +103,7 @@ def test_refresh_loop_repriced_model_with_curated_alias(pricing_tracker):
|
||||
|
||||
|
||||
def test_refresh_loop_leaves_model_without_hf_aliases_on_static_price(pricing_tracker):
|
||||
"Refresh loop leaves model without hf aliases on static price\n\nTags: general"
|
||||
tracker_url, ledger, tracker = pricing_tracker
|
||||
_wait_for_price_change(ledger, PRICED_MODEL) # let the loop run at least once
|
||||
assert ledger.price_for(STATIC_MODEL) == 0.02
|
||||
@@ -109,6 +111,7 @@ def test_refresh_loop_leaves_model_without_hf_aliases_on_static_price(pricing_tr
|
||||
|
||||
|
||||
def test_price_history_requires_auth(pricing_tracker):
|
||||
"Price history requires auth\n\nTags: auth, security"
|
||||
tracker_url, ledger, tracker = pricing_tracker
|
||||
_wait_for_price_change(ledger, PRICED_MODEL)
|
||||
with pytest.raises(urllib.error.HTTPError) as exc_info:
|
||||
@@ -117,6 +120,7 @@ def test_price_history_requires_auth(pricing_tracker):
|
||||
|
||||
|
||||
def test_price_history_reports_old_new_source_and_timestamp(pricing_tracker):
|
||||
"Price history reports old new source and timestamp\n\nTags: general"
|
||||
tracker_url, ledger, tracker = pricing_tracker
|
||||
_wait_for_price_change(ledger, PRICED_MODEL)
|
||||
result = _get_json(
|
||||
@@ -133,6 +137,7 @@ def test_price_history_reports_old_new_source_and_timestamp(pricing_tracker):
|
||||
|
||||
|
||||
def test_price_history_filters_by_model(pricing_tracker):
|
||||
"Price history filters by model\n\nTags: general"
|
||||
tracker_url, ledger, tracker = pricing_tracker
|
||||
_wait_for_price_change(ledger, PRICED_MODEL)
|
||||
result = _get_json(
|
||||
|
||||
Reference in New Issue
Block a user