🐛 Fix test completion, check for bash completion file before running
This commit is contained in:
parent
7b369b79f2
commit
cde63b0760
1 changed files with 3 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue