mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-30 04:04:40 -05:00
24 lines
616 B
Text
24 lines
616 B
Text
|
#!/usr/bin/env bats
|
||
|
|
||
|
load test_helper
|
||
|
|
||
|
@test "not enought arguments for python-build" {
|
||
|
# use empty inline definition so nothing gets built anyway
|
||
|
local definition="${TMP}/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="${TMP}/build-definition"
|
||
|
echo '' > "$definition"
|
||
|
|
||
|
run python-build "$definition" "${TMP}/install" ""
|
||
|
assert_failure
|
||
|
assert_output_contains 'Usage: python-build'
|
||
|
}
|