1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-12 21:33:54 -05:00

Add pyenv versions' option to skip envs for pyenv-latest'

This commit is contained in:
Ivan Pozdeev
2023-02-02 17:41:53 +03:00
parent 9248255f70
commit 9fe80f28e5
2 changed files with 36 additions and 13 deletions

View File

@@ -66,18 +66,38 @@ OUT
assert_success "3.3"
}
@test "multiple versions" {
@test "multiple versions and envs" {
stub_system_python
create_version "2.7.6"
create_version "3.3.3"
create_version "3.4.0"
create_version "3.4.0/envs/foo"
create_version "3.4.0/envs/bar"
create_version "3.5.2"
run pyenv-versions
assert_success
assert_output <<OUT
* system (set by ${PYENV_ROOT}/version)
2.7.6
3.4.0
3.4.0/envs/bar
3.4.0/envs/foo
3.5.2
OUT
}
@test "skips envs with --skip-envs" {
create_version "3.3.3"
create_version "3.4.0"
create_version "3.4.0/envs/foo"
create_version "3.4.0/envs/bar"
create_version "3.5.0"
run pyenv-versions --skip-envs
assert_success <<OUT
* system (set by ${PYENV_ROOT}/version)
3.3.3
3.4.0
3.5.0
OUT
}
@@ -216,7 +236,7 @@ SH
OUT
}
@test "non-bare output resolves links" {
@test "non-bare output shows symlink contents" {
create_version "1.9.0"
create_alias "link" "foo/bar"