Skip to content
Myr

:bug: Fix test completion, check for bash completion file before running

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sebastián Ramírez · committed by Sebastián Ramírez · parent 7b369b7 · Browse files · 1 file+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−1 removed

  • tests:+3 added−1 removed

1 file+3 added−1 removed

modified:tests/test_completion.py+3 added-1 removed
28 unmodified lines
293031def test_install_completion():32 bash_completion_path: Path = Path.home() / ".bash_completion"33 text = ""34 if bash_completion_path.is_file():33 text = bash_completion_path.read_text()35 text = bash_completion_path.read_text()36 result = subprocess.run(37 [38 "bash",39 "-c",
10 unmodified lines