diff --git a/plugins/pyenv-binary/test/package.bats b/plugins/pyenv-binary/test/package.bats index b3f2f6dc..b954fa6d 100644 --- a/plugins/pyenv-binary/test/package.bats +++ b/plugins/pyenv-binary/test/package.bats @@ -24,17 +24,15 @@ stub_build_environment() { done } -@test "completion lists the option and definitions provided by another plugin" { - mkdir -p "${PYENV_ROOT}/plugins/example/share/python-build" - touch "${PYENV_ROOT}/plugins/example/share/python-build/3.12.7-example" - PATH="${BATS_TEST_DIRNAME}/../../python-build/bin:${PATH}" +@test "completions" { + create_stub pyenv-install 'echo "${0##*/} $*"' run pyenv-binary-package --complete - assert_success - assert_line "--archive-base-url" - assert_line "--verbose" - assert_line "3.12.7-example" - refute_line "Available versions:" + assert_success <