Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

29 рядки
579 B

  1. #!/usr/bin/env bats
  2. load test_helper
  3. @test "no shims" {
  4. run pyenv-shims
  5. assert_success
  6. assert [ -z "$output" ]
  7. }
  8. @test "shims" {
  9. mkdir -p "${PYENV_ROOT}/shims"
  10. touch "${PYENV_ROOT}/shims/python"
  11. touch "${PYENV_ROOT}/shims/irb"
  12. run pyenv-shims
  13. assert_success
  14. assert_line "${PYENV_ROOT}/shims/python"
  15. assert_line "${PYENV_ROOT}/shims/irb"
  16. }
  17. @test "shims --short" {
  18. mkdir -p "${PYENV_ROOT}/shims"
  19. touch "${PYENV_ROOT}/shims/python"
  20. touch "${PYENV_ROOT}/shims/irb"
  21. run pyenv-shims --short
  22. assert_success
  23. assert_line "irb"
  24. assert_line "python"
  25. }