Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

29 rader
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. }