From cde63b076027345486e4e836a02811962ad5bcaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Tue, 31 Dec 2019 11:19:07 +0100 Subject: [PATCH] :bug: Fix test completion, check for bash completion file before running --- tests/test_completion.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_completion.py b/tests/test_completion.py index 0f64c1a..feba8c1 100644 --- a/tests/test_completion.py +++ b/tests/test_completion.py @@ -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",