mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-08 11:33:55 -05:00
fix broken tests
This commit is contained in:
@@ -46,9 +46,11 @@ load test_helper
|
|||||||
}
|
}
|
||||||
|
|
||||||
@test "outputs bash-specific syntax" {
|
@test "outputs bash-specific syntax" {
|
||||||
|
export PYENV_VIRTUALENV_ROOT="${TMP}/pyenv/plugins/pyenv-virtualenv"
|
||||||
run pyenv-virtualenv-init - bash
|
run pyenv-virtualenv-init - bash
|
||||||
assert_success
|
assert_success
|
||||||
assert_output <<EOS
|
assert_output <<EOS
|
||||||
|
export PATH="${TMP}/pyenv/plugins/pyenv-virtualenv/shims:${PATH}";
|
||||||
export PYENV_VIRTUALENV_INIT=1;
|
export PYENV_VIRTUALENV_INIT=1;
|
||||||
_pyenv_virtualenv_hook() {
|
_pyenv_virtualenv_hook() {
|
||||||
local ret=\$?
|
local ret=\$?
|
||||||
@@ -80,9 +82,11 @@ EOS
|
|||||||
}
|
}
|
||||||
|
|
||||||
@test "outputs fish-specific syntax" {
|
@test "outputs fish-specific syntax" {
|
||||||
|
export PYENV_VIRTUALENV_ROOT="${TMP}/pyenv/plugins/pyenv-virtualenv"
|
||||||
run pyenv-virtualenv-init - fish
|
run pyenv-virtualenv-init - fish
|
||||||
assert_success
|
assert_success
|
||||||
assert_output <<EOS
|
assert_output <<EOS
|
||||||
|
setenv PATH '${TMP}/pyenv/plugins/pyenv-virtualenv/shims' \$PATH;
|
||||||
setenv PYENV_VIRTUALENV_INIT 1;
|
setenv PYENV_VIRTUALENV_INIT 1;
|
||||||
function _pyenv_virtualenv_hook --on-event fish_prompt;
|
function _pyenv_virtualenv_hook --on-event fish_prompt;
|
||||||
set -l PYENV_PREFIX (pyenv prefix 2>/dev/null; or true)
|
set -l PYENV_PREFIX (pyenv prefix 2>/dev/null; or true)
|
||||||
@@ -112,9 +116,11 @@ EOS
|
|||||||
}
|
}
|
||||||
|
|
||||||
@test "outputs zsh-specific syntax" {
|
@test "outputs zsh-specific syntax" {
|
||||||
|
export PYENV_VIRTUALENV_ROOT="${TMP}/pyenv/plugins/pyenv-virtualenv"
|
||||||
run pyenv-virtualenv-init - zsh
|
run pyenv-virtualenv-init - zsh
|
||||||
assert_success
|
assert_success
|
||||||
assert_output <<EOS
|
assert_output <<EOS
|
||||||
|
export PATH="${TMP}/pyenv/plugins/pyenv-virtualenv/shims:${PATH}";
|
||||||
export PYENV_VIRTUALENV_INIT=1;
|
export PYENV_VIRTUALENV_INIT=1;
|
||||||
_pyenv_virtualenv_hook() {
|
_pyenv_virtualenv_hook() {
|
||||||
local ret=\$?
|
local ret=\$?
|
||||||
|
|||||||
Reference in New Issue
Block a user