mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-07 20:31:01 -05:00
30 lines
579 B
Text
30 lines
579 B
Text
|
#!/usr/bin/env bats
|
||
|
|
||
|
load test_helper
|
||
|
|
||
|
@test "no shims" {
|
||
|
run pyenv-shims
|
||
|
assert_success
|
||
|
assert [ -z "$output" ]
|
||
|
}
|
||
|
|
||
|
@test "shims" {
|
||
|
mkdir -p "${PYENV_ROOT}/shims"
|
||
|
touch "${PYENV_ROOT}/shims/python"
|
||
|
touch "${PYENV_ROOT}/shims/irb"
|
||
|
run pyenv-shims
|
||
|
assert_success
|
||
|
assert_line "${PYENV_ROOT}/shims/python"
|
||
|
assert_line "${PYENV_ROOT}/shims/irb"
|
||
|
}
|
||
|
|
||
|
@test "shims --short" {
|
||
|
mkdir -p "${PYENV_ROOT}/shims"
|
||
|
touch "${PYENV_ROOT}/shims/python"
|
||
|
touch "${PYENV_ROOT}/shims/irb"
|
||
|
run pyenv-shims --short
|
||
|
assert_success
|
||
|
assert_line "irb"
|
||
|
assert_line "python"
|
||
|
}
|