Skip to content

Commit 6985681

Browse files
committed
Fix test cases for venv clear and venv lock using venv install
1 parent 4c5e770 commit 6985681

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/test_venv_clear.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
@pytest.mark.order(after="test_venv_install.py::test_venv_install")
99
def test_venv_clear(tmp_path: Path, capfd: pytest.CaptureFixture[str]):
1010
"""Checks that we can clear installed packages in an environment after installing them"""
11-
run_command(commands=["venv install --skip-lock", "venv clear"], activated=True, cwd=tmp_path)
11+
run_command(commands=["venv install pip --skip-lock", "venv clear"], activated=True, cwd=tmp_path)
1212

1313
output = capfd.readouterr().out
1414
assert "Removing all packages" in output

tests/test_venv_lock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def test_venv_lock(
3434

3535
run_command(
3636
commands=[
37-
f"venv install {requirements_stem}.txt --skip-lock",
37+
f"venv install -r {requirements_stem}.txt --skip-lock",
3838
f"venv lock {lock_file_arg}",
3939
],
4040
cwd=tmp_path,

0 commit comments

Comments
 (0)