mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-16 07:13:53 -05:00
Split test files
This commit is contained in:
@@ -45,11 +45,3 @@ load test_helper
|
|||||||
assert_failure
|
assert_failure
|
||||||
assert_output "pyenv: cannot change working directory to \`$dir'"
|
assert_output "pyenv: cannot change working directory to \`$dir'"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "conflicting GREP_OPTIONS" {
|
|
||||||
file="${BATS_TMPDIR}/hello"
|
|
||||||
echo "hello" > "$file"
|
|
||||||
GREP_OPTIONS="-F" run pyenv grep "hell." "$file"
|
|
||||||
assert_success
|
|
||||||
assert_output "hello"
|
|
||||||
}
|
|
||||||
|
|||||||
11
test/pyenv_ext.bats
Normal file
11
test/pyenv_ext.bats
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env bats
|
||||||
|
|
||||||
|
load test_helper
|
||||||
|
|
||||||
|
@test "conflicting GREP_OPTIONS" {
|
||||||
|
file="${BATS_TMPDIR}/hello"
|
||||||
|
echo "hello" > "$file"
|
||||||
|
GREP_OPTIONS="-F" run pyenv grep "hell." "$file"
|
||||||
|
assert_success
|
||||||
|
assert_output "hello"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user