Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 

21 řádky
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 == ""