Some checks are pending
macos_build / macos_build (3.10) (push) Waiting to run
macos_build / macos_build (3.11) (push) Waiting to run
macos_build / macos_build (3.12) (push) Waiting to run
macos_build / macos_build (3.13) (push) Waiting to run
macos_build / macos_build (3.14) (push) Waiting to run
pyenv_tests / pyenv_tests (macos-14) (push) Waiting to run
pyenv_tests / pyenv_tests (macos-15) (push) Waiting to run
pyenv_tests / pyenv_tests (macos-15-intel) (push) Waiting to run
pyenv_tests / pyenv_tests (macos-26) (push) Waiting to run
pyenv_tests / pyenv_tests (ubuntu-22.04) (push) Waiting to run
pyenv_tests / pyenv_tests (ubuntu-24.04) (push) Waiting to run
ubuntu_build / ubuntu_build (3.10) (push) Waiting to run
ubuntu_build / ubuntu_build (3.11) (push) Waiting to run
ubuntu_build / ubuntu_build (3.12) (push) Waiting to run
ubuntu_build / ubuntu_build (3.13) (push) Waiting to run
ubuntu_build / ubuntu_build (3.14) (push) Waiting to run
30 lines
579 B
Bash
30 lines
579 B
Bash
#!/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"
|
|
}
|