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
24 lines
654 B
Bash
24 lines
654 B
Bash
#!/usr/bin/env bats
|
|
|
|
load test_helper
|
|
|
|
@test "not enough arguments for python-build" {
|
|
# use empty inline definition so nothing gets built anyway
|
|
local definition="${BATS_TEST_TMPDIR}/build-definition"
|
|
echo '' > "$definition"
|
|
|
|
run python-build "$definition"
|
|
assert_failure
|
|
assert_output_contains 'Usage: python-build'
|
|
}
|
|
|
|
@test "extra arguments for python-build" {
|
|
# use empty inline definition so nothing gets built anyway
|
|
local definition="${BATS_TEST_TMPDIR}/build-definition"
|
|
echo '' > "$definition"
|
|
|
|
run python-build "$definition" "${BATS_TEST_TMPDIR}/install" ""
|
|
assert_failure
|
|
assert_output_contains 'Usage: python-build'
|
|
}
|