The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(lazy_deps): one test for bridge-vs-explicit-uv-knob
kshitijk4poor30cbb67f1ee9
diff --git a/tests/tools/test_lazy_deps.py b/tests/tools/test_lazy_deps.pyindex cdf21943c94..5adf2ba8c39 100644--- a/tests/tools/test_lazy_deps.py+++ b/tests/tools/test_lazy_deps.py@@ -634,16 +634,13 @@ class TestPipConfIndexBridge:assert result.successreturn captured["env"]- def test_pip_conf_index_url_bridged_when_uv_unset(self, monkeypatch, tmp_path):+ def test_pip_conf_index_url_bridged_unless_uv_has_its_own_index(self, monkeypatch, tmp_path):monkeypatch.delenv("PIP_INDEX_URL", raising=False)- env = self._run_with_fake_uv(monkeypatch, tmp_path)- assert env["UV_INDEX_URL"] == self.MIRROR+ assert self._run_with_fake_uv(monkeypatch, tmp_path)["UV_INDEX_URL"] == self.MIRROR++ env = self._run_with_fake_uv(monkeypatch, tmp_path, UV_DEFAULT_INDEX="https://custom.example/simple")+ assert "UV_INDEX_URL" not in envdef test_pip_index_url_env_beats_pip_conf(self, monkeypatch, tmp_path):env = self._run_with_fake_uv(monkeypatch, tmp_path, PIP_INDEX_URL="https://env.example/simple")assert env["UV_INDEX_URL"] == "https://env.example/simple"-- def test_explicit_uv_index_knob_is_not_overridden(self, monkeypatch, tmp_path):- monkeypatch.delenv("PIP_INDEX_URL", raising=False)- env = self._run_with_fake_uv(monkeypatch, tmp_path, UV_DEFAULT_INDEX="https://custom.example/simple")- assert "UV_INDEX_URL" not in env