HEX
Server: Apache
System: Linux p102.lithium.hosting 4.18.0-553.141.1.el8_10.x86_64 #1 SMP Fri Jul 10 17:48:02 UTC 2026 x86_64
User: bvzmoamr (9955)
PHP: 8.1.34
Disabled: syslog
Upload Files
File: //proc/thread-self/root/usr/local/share/python/pyenv/test/shims.bats
#!/usr/bin/env bats

load test_helper

@test "no shims" {
  run pyenv-shims
  assert_success
  assert [ -z "$output" ]
}

@test "shims" {
  mkdir -p "${PYENV_ROOT}/shims"
  touch "${PYENV_ROOT}/shims/python"
  touch "${PYENV_ROOT}/shims/irb"
  run pyenv-shims
  assert_success
  assert_line "${PYENV_ROOT}/shims/python"
  assert_line "${PYENV_ROOT}/shims/irb"
}

@test "shims --short" {
  mkdir -p "${PYENV_ROOT}/shims"
  touch "${PYENV_ROOT}/shims/python"
  touch "${PYENV_ROOT}/shims/irb"
  run pyenv-shims --short
  assert_success
  assert_line "irb"
  assert_line "python"
}