test(cost-map): clear LITELLM_LOCAL_MODEL_COST_MAP in register_model url test

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
kerry 2026-09-09 03:50:49 +00:00
parent 4179f086e0
commit 9a721abf0d

View file

@ -2386,6 +2386,7 @@ def test_register_model_with_scientific_notation():
@respx.mock
def test_register_model_url_fetch_uses_single_attempt(monkeypatch):
monkeypatch.delenv("LITELLM_LOCAL_MODEL_COST_MAP", raising=False)
monkeypatch.setattr(litellm, "model_cost", dict(litellm.model_cost))
before = dict(litellm.model_cost)
threads_before = {thread.name for thread in threading.enumerate()}