mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-16 15:23:53 -05:00
pyenv-latest: replace -q with -b and -f, document as internal
More tailored for the emergent internal use cases
This commit is contained in:
@@ -115,3 +115,25 @@ echo 3.8.1/envs/foo
|
||||
3.8.1
|
||||
!
|
||||
}
|
||||
|
||||
@test "falls back to argument with -b" {
|
||||
create_executable pyenv-versions <<!
|
||||
#!$BASH
|
||||
!
|
||||
run pyenv-latest -b nonexistent
|
||||
assert_failure
|
||||
assert_output <<!
|
||||
nonexistent
|
||||
!
|
||||
}
|
||||
|
||||
@test "falls back to argument and succeeds with -f" {
|
||||
create_executable pyenv-versions <<!
|
||||
#!$BASH
|
||||
!
|
||||
run pyenv-latest -f nonexistent
|
||||
assert_success
|
||||
assert_output <<!
|
||||
nonexistent
|
||||
!
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user