🐛 Fix test completion, check for bash completion file before running

This commit is contained in:
Sebastián Ramírez 2019-12-31 11:19:07 +01:00
parent 7b369b79f2
commit cde63b0760

View file

@ -30,7 +30,9 @@ def test_show_completion():
def test_install_completion():
bash_completion_path: Path = Path.home() / ".bash_completion"
text = bash_completion_path.read_text()
text = ""
if bash_completion_path.is_file():
text = bash_completion_path.read_text()
result = subprocess.run(
[
"bash",