Explorar el Código

update test setup to unset PYENV_VIRTUALENV_PROMPT

pull/476/head
Jovier A. Jiménez hace 1 semana
padre
commit
119c4db68c
Se han modificado 3 ficheros con 4 adiciones y 0 borrados
  1. +2
    -0
      test/activate.bats
  2. +1
    -0
      test/conda-activate.bats
  3. +1
    -0
      test/hooks.bats

+ 2
- 0
test/activate.bats Ver fichero

@ -15,6 +15,7 @@ setup() {
unset PYENV_VIRTUALENV_DISABLE_PROMPT
unset PYENV_VIRTUAL_ENV_DISABLE_PROMPT
unset VIRTUAL_ENV_DISABLE_PROMPT
unset PYENV_VIRTUALENV_PROMPT
unset _OLD_VIRTUAL_PS1
stub pyenv-hooks "activate : echo"
}
@ -46,6 +47,7 @@ EOS
@test "activate virtualenv from current version with custom prompt" {
export PYENV_VIRTUALENV_INIT=1
export PYENV_VIRTUALENV_PROMPT='venv:{venv}'
stub pyenv-version-name "echo venv"
stub pyenv-virtualenv-prefix "venv : echo \"${PYENV_ROOT}/versions/venv\""

+ 1
- 0
test/conda-activate.bats Ver fichero

@ -16,6 +16,7 @@ setup() {
unset PYENV_VIRTUALENV_DISABLE_PROMPT
unset PYENV_VIRTUAL_ENV_DISABLE_PROMPT
unset VIRTUAL_ENV_DISABLE_PROMPT
unset PYENV_VIRTUALENV_PROMPT
unset _OLD_VIRTUAL_PS1
stub pyenv-hooks "activate : echo"
}

+ 1
- 0
test/hooks.bats Ver fichero

@ -6,6 +6,7 @@ setup() {
export PYENV_ROOT="${TMP}/pyenv"
export HOOK_PATH="${TMP}/i has hooks"
mkdir -p "$HOOK_PATH"
unset PYENV_VIRTUALENV_PROMPT
}
@test "pyenv-virtualenv hooks" {

Cargando…
Cancelar
Guardar