Merge pull request #667 from Routstr/fix-tests

test: register DeepSeek V4 pricing shim in cache pricing tests
This commit is contained in:
9qeklajc
2026-08-16 21:10:29 +02:00
committed by GitHub
+9
View File
@@ -31,6 +31,15 @@ from routstr.payment.models import (
backfill_cache_pricing,
)
from routstr.upstream import GenericUpstreamProvider
from routstr.upstream.deepseek_v4_pricing_shim import register_deepseek_v4_pricing
@pytest.fixture(autouse=True)
def _deepseek_v4_pricing() -> None:
# litellm's bundled cost map lacks the DeepSeek V4 entries (they only
# appear when its remote map is reachable); production injects them at
# startup via this same shim.
register_deepseek_v4_pricing()
def _make_model(model_id: str, pricing: Pricing) -> Model: