test: registry cost-guard passthrough uses a models.dev-trusted provider

The custom-provider pricing-trust fix makes provider="test" (not a
models.dev provider) correctly silent — use anthropic in the fixture.
This commit is contained in:
Teknium 2026-08-14 01:14:25 -07:00
parent 54cc39aa15
commit f2678b8706
1 changed files with 2 additions and 2 deletions

View File

@ -93,11 +93,11 @@ def test_cost_guard_still_fires_through_registry():
id="pricey/model",
name="pricey/model",
family="",
provider_id="test",
provider_id="anthropic",
cost_input=50.0,
cost_output=200.0,
)
warnings = selection_warnings(
"pricey/model", provider="test", model_info=info
"pricey/model", provider="anthropic", model_info=info
)
assert any(w.kind == "cost" for w in warnings)