Reflect which printgin command not found and hint

This commit is contained in:
Ivan Pozdeev 2024-12-16 01:46:40 +03:00
parent 02b53f5662
commit 28fa28ce95

View File

@ -71,7 +71,16 @@ create_executable() {
@test "version not installed" {
create_executable "3.4" "py.test"
PYENV_VERSION=3.3 run pyenv-which py.test
assert_failure "pyenv: version \`3.3' is not installed (set by PYENV_VERSION environment variable)"
assert_failure <<OUT
pyenv: version \`3.3' is not installed (set by PYENV_VERSION environment variable)
pyenv: py.test: command not found
The \`py.test' command exists in these Python versions:
3.4
Note: See 'pyenv help global' for tips on allowing both
python2 and python3 to be found.
OUT
}
@test "versions not installed" {