mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-16 15:33:51 -05:00
Add test helpers for virtualenv, pyvenv and conda
This commit is contained in:
@@ -7,11 +7,8 @@ setup() {
|
||||
}
|
||||
|
||||
stub_pyenv() {
|
||||
create_executable "${PYENV_VERSION}" "python"
|
||||
setup_version "${PYENV_VERSION}"
|
||||
create_executable "${PYENV_VERSION}" "virtualenv"
|
||||
remove_executable "${PYENV_VERSION}" "pyvenv"
|
||||
remove_executable "${PYENV_VERSION}" "conda"
|
||||
|
||||
stub pyenv-prefix "echo '${PYENV_ROOT}/versions/${PYENV_VERSION}'"
|
||||
stub pyenv-prefix "echo '${PYENV_ROOT}/versions/${PYENV_VERSION}'"
|
||||
stub pyenv-hooks "virtualenv : echo"
|
||||
@@ -22,6 +19,7 @@ unstub_pyenv() {
|
||||
unstub pyenv-prefix
|
||||
unstub pyenv-hooks
|
||||
unstub pyenv-rehash
|
||||
teardown_version "${PYENV_VERSION}"
|
||||
}
|
||||
|
||||
@test "create virtualenv from given version" {
|
||||
|
||||
Reference in New Issue
Block a user