瀏覽代碼

adjust tests

pull/440/head
Ivan Pozdeev 1 年之前
父節點
當前提交
8d3789c5d7
共有 3 個檔案被更改,包括 4 行新增2 行删除
  1. +2
    -0
      test/init.bats
  2. +1
    -1
      test/pip.bats
  3. +1
    -1
      test/virtualenv.bats

+ 2
- 0
test/init.bats 查看文件

@ -72,6 +72,8 @@ EOS
run pyenv-virtualenv-init - fish
assert_success
assert_output <<EOS
while set index (contains -i -- "${TMP}/pyenv/plugins/pyenv-virtualenv/shims" $PATH)
set -eg PATH[$index]; end; set -e index
set -gx PATH '${TMP}/pyenv/plugins/pyenv-virtualenv/shims' \$PATH;
set -gx PYENV_VIRTUALENV_INIT 1;
function _pyenv_virtualenv_hook --on-event fish_prompt;

+ 1
- 1
test/pip.bats 查看文件

@ -63,7 +63,7 @@ OUT
assert_success
assert_output <<OUT
PYENV_VERSION=3.3.6 python3.3 -m venv ${PYENV_ROOT}/versions/3.3.6/envs/venv
Installing pip from https://bootstrap.pypa.io/3.3/get-pip.py...
Installing pip from https://bootstrap.pypa.io/pip/3.3/get-pip.py...
PYENV_VERSION=3.3.6/envs/venv python -s ${TMP}/pyenv/cache/get-pip.py
rehashed
OUT

+ 1
- 1
test/virtualenv.bats 查看文件

@ -38,7 +38,7 @@ unstub_pyenv() {
assert_output <<OUT
PYENV_VERSION=2.7.11 virtualenv ${PYENV_ROOT}/versions/2.7.11/envs/venv
Installing pip from https://bootstrap.pypa.io/get-pip.py...
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" ]

Loading…
取消
儲存