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.
 
 
 
 

21 rader
594 B

  1. #!/usr/bin/env python3
  2. from .utils import execute
  3. def test_completion_script_is_generated():
  4. for shell in ["bash", "zsh", "fish", "powershell"]:
  5. result = execute(["kosmorro", f"--completion={shell}"])
  6. assert result.successful
  7. assert result.stdout != ""
  8. assert result.stderr == ""
  9. def test_completion_script_returns_error_for_unsupported_shell():
  10. result = execute(["kosmorro", "--completion=deuchshell"])
  11. assert not result.successful
  12. assert result.stderr == "No completion script available for this shell.\n"
  13. assert result.stdout == ""