From d60159b4c3844d42b1e444da005298b421928c83 Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Tue, 27 Jun 2023 00:57:51 +0300 Subject: [PATCH] add test --- test/virtualenv.bats | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/virtualenv.bats b/test/virtualenv.bats index f297916..c54268e 100644 --- a/test/virtualenv.bats +++ b/test/virtualenv.bats @@ -33,6 +33,9 @@ unstub_pyenv() { stub pyenv-exec "python -s -m ensurepip : false" stub pyenv-exec "python -s */get-pip.py : true" stub curl true + create_executable "${PYENV_VERSION}" "python-config" + create_executable "${PYENV_VERSION}" "python2-config" + create_executable "${PYENV_VERSION}" "python2.7-config" run pyenv-virtualenv "2.7.11" "venv" @@ -41,8 +44,10 @@ PYENV_VERSION=2.7.11 virtualenv ${PYENV_ROOT}/versions/2.7.11/envs/venv Installing pip from https://bootstrap.pypa.io/pip/2.7/get-pip.py... rehashed OUT - assert [ -x "${PYENV_ROOT}/versions/2.7.11/envs/venv/bin/pydoc" ] assert_success + for x in pydoc python-config python2-config python2.7-config; do + assert [[ -x "${PYENV_ROOT}/versions/2.7.11/envs/venv/bin/$x" ]] + done unstub_pyenv unstub pyenv-virtualenv-prefix