From 2bc122302f04994c55c77ea643bac1f9b051cbc4 Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Sat, 15 Nov 2025 10:41:15 -0800 Subject: [PATCH] fix build and test --- .circleci/config.yml | 1 + tests/test_model_cost_map_url.py | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5dd7a189fc..6259c18c8b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1156,6 +1156,7 @@ jobs: pip install "requests-mock>=1.12.1" pip install "responses==0.25.7" pip install "pytest-xdist==3.6.1" + pip install "pytest-forked==1.6.0" pip install "semantic_router==0.1.10" pip install "fastapi-offline==1.7.3" - setup_litellm_enterprise_pip diff --git a/tests/test_model_cost_map_url.py b/tests/test_model_cost_map_url.py index b740c35719..f19fc3a198 100644 --- a/tests/test_model_cost_map_url.py +++ b/tests/test_model_cost_map_url.py @@ -1,9 +1,16 @@ import importlib import sys +import pytest +@pytest.mark.forked def test_model_cost_map_url_from_env(monkeypatch): - """Ensure `LITELLM_MODEL_COST_MAP_URL` env var is picked up on import and used by get_model_cost_map.""" + """ + Ensure `LITELLM_MODEL_COST_MAP_URL` env var is picked up on import and used by get_model_cost_map. + + This test reloads the litellm module, so it runs in a forked process to avoid + affecting other tests running in parallel. + """ test_url = "https://example.com/test_model_cost_map.json" # A minimal model cost map we expect to be loaded