Skip to content

Commit

Permalink
tests: add extra check to cover bin_paths
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii committed Oct 28, 2024
1 parent 827c8cf commit 87f0848
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,12 @@ def test_create(monkeypatch, make_one):
assert dir_.join("Scripts", "python.exe").check()
assert dir_.join("Scripts", "pip.exe").check()
assert dir_.join("Lib").check()
assert str(dir_.join("Scripts")) in venv.bin_paths
else:
assert dir_.join("bin", "python").check()
assert dir_.join("bin", "pip").check()
assert dir_.join("lib").check()
assert str(dir_.join("bin")) in venv.bin_paths

# Test running create on an existing environment. It should be deleted.
dir_.ensure("test.txt")
Expand Down

0 comments on commit 87f0848

Please sign in to comment.