From 6113214f655660bb8afd25a1c947d8cfbd5fc1d4 Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Sat, 20 Dec 2025 09:31:05 +0300 Subject: [PATCH] tests: refactor: migrate to newly-added create_stub() --- test/init.bats | 10 ++-------- test/latest.bats | 36 ++++++++++-------------------------- 2 files changed, 12 insertions(+), 34 deletions(-) diff --git a/test/init.bats b/test/init.bats index a6845fe4..2b963249 100755 --- a/test/init.bats +++ b/test/init.bats @@ -2,10 +2,6 @@ load test_helper -_setup() { - export PATH="${PYENV_TEST_DIR}/bin:$PATH" -} - @test "creates shims and versions directories" { assert [ ! -d "${PYENV_ROOT}/shims" ] assert [ ! -d "${PYENV_ROOT}/versions" ] @@ -171,16 +167,14 @@ echo "\$PATH" } @test "outputs sh-compatible case syntax" { - create_path_executable pyenv-commands <