From 9fe8f05cc2820d901489bbfa0e541fd53510acdb 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_virtualenv.py b/tests/test_virtualenv.py index c23f3989..4ce0af1c 100644 --- a/tests/test_virtualenv.py +++ b/tests/test_virtualenv.py @@ -442,10 +442,12 @@ def test_create( 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") @@ -557,6 +559,8 @@ def test_reuse_conda_environment( ) -> None: venv, _ = make_one(reuse_existing=True, venv_backend="conda") venv.create() + assert venv.bin_paths + assert venv.bin_paths[-1].endswith("bin") venv, _ = make_one(reuse_existing=True, venv_backend="conda") reused = not venv.create()