1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-10 20:43:48 -05:00

Add bats test for python-build

This commit is contained in:
Yamashita Yuu
2014-01-17 21:14:30 +09:00
parent badc8255ab
commit e65a10be51
16 changed files with 924 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bats
load test_helper
export PYTHON_BUILD_SKIP_MIRROR=1
export PYTHON_BUILD_CACHE_PATH=
@test "failed download displays error message" {
stub curl false
install_fixture definitions/without-checksum
assert_failure
assert_output_contains "> http://example.com/packages/package-1.0.0.tar.gz"
assert_output_contains "error: failed to download package-1.0.0.tar.gz"
}