Add test helpers for virtualenv, pyvenv and conda

This commit is contained in:
Yamashita, Yuu
2015-11-27 13:30:52 +00:00
parent 6a2b77ed5b
commit 48b491f343
10 changed files with 115 additions and 86 deletions

View File

@@ -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" {