From 87f084817c9ef2ef60e635fd1d4eac8a58037272 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Mon, 28 Oct 2024 14:10:19 -0400 Subject: [PATCH] tests: add extra check to cover bin_paths Signed-off-by: Henry Schreiner --- tests/test_virtualenv.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_virtualenv.py b/tests/test_virtualenv.py index d65ccf45..d0caa508 100644 --- a/tests/test_virtualenv.py +++ b/tests/test_virtualenv.py @@ -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")