Skip to content

The agent that grows with you

test(inventory): keep the cold-pricing bound off the models.dev fetch

Tekniumb0522cc48bc9
diff --git a/tests/hermes_cli/test_inventory_pricing.py b/tests/hermes_cli/test_inventory_pricing.py
index e2a4414f194..be37355eabd 100644
--- a/tests/hermes_cli/test_inventory_pricing.py
+++ b/tests/hermes_cli/test_inventory_pricing.py
@@ -136,6 +136,9 @@ def test_model_options_cold_pricing_fetch_runs_off_the_request_path(monkeypatch)
monkeypatch.setattr(inv, "_moa_provider_row", lambda *_args, **_kwargs: None)
monkeypatch.setattr(inv, "_apply_capabilities", lambda _rows, **_kwargs: None)
monkeypatch.setattr(inv, "_apply_featured", lambda _rows, **_kwargs: None)
+ # The aggregator dedup asks models.dev about the row; in a cold process that is a live network
+ # fetch, which is not the pricing path this bound is about (CI saw it take 9.5 s).
+ monkeypatch.setattr(inv, "_strip_aggregator_overlaps", lambda _rows: None)
monkeypatch.setattr(inv, "_pricing_prewarm_threads", {})
try: