Skip to content

Commit ecd662a

Browse files
committed
test: guard bootstrap pip security floor
1 parent b513a1d commit ecd662a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/unit/test_frontend_gate_bootstrap.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,13 @@ def test_bootstrap_env_prebuilt_restore_clears_existing_runtime_venv_contents()
202202
assert 'python3 -m venv "$target"' in script
203203

204204

205+
def test_requirements_pip_lock_keeps_pip_at_or_above_the_current_security_floor() -> None:
206+
lock = (_repo_root() / "tooling" / "requirements-pip.lock.txt").read_text(encoding="utf-8")
207+
208+
assert "pip==26.0.1" in lock
209+
assert "pip==25.0.1" not in lock
210+
211+
205212
def test_restore_prebuilt_tree_replaces_existing_contents_without_file_exists_conflicts(tmp_path: Path) -> None:
206213
script = _repo_root() / "tooling" / "scripts" / "restore_prebuilt_tree.py"
207214
src = tmp_path / "src"

0 commit comments

Comments
 (0)