#!/usr/bin/env bats load test_helper setup() { export HOME="${TMP}" export PYENV_ROOT="${TMP}/pyenv" } @test "activate conda root from current version" { export PYENV_VIRTUALENV_INIT=1 create_conda "anaconda-2.3.0" stub pyenv-version-name "echo anaconda-2.3.0" stub pyenv-virtualenv-prefix "anaconda-2.3.0 : echo \"${PYENV_ROOT}/versions/anaconda-2.3.0\"" stub pyenv-prefix "anaconda-2.3.0 : echo \"${PYENV_ROOT}/versions/anaconda-2.3.0\"" stub pyenv-prefix "anaconda-2.3.0 : echo \"${PYENV_ROOT}/versions/anaconda-2.3.0\"" PYENV_SHELL="bash" PYENV_VERSION="anaconda-2.3.0" run pyenv-sh-activate unstub pyenv-version-name unstub pyenv-virtualenv-prefix unstub pyenv-prefix assert_success assert_output <