From 0db91f394a51850083f37d349f475d5874e95f0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Thu, 19 Mar 2020 13:45:36 +0100 Subject: [PATCH] :white_check_mark: Add coverage instructions to tests --- tests/test_completion/test_completion.py | 2 +- tests/test_completion/test_completion_install.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_completion/test_completion.py b/tests/test_completion/test_completion.py index ec2ac88ffd..a19804e34a 100644 --- a/tests/test_completion/test_completion.py +++ b/tests/test_completion/test_completion.py @@ -24,7 +24,7 @@ def test_show_completion(): def test_install_completion(): bash_completion_path: Path = Path.home() / ".bash_completion" text = "" - if bash_completion_path.is_file(): + if bash_completion_path.is_file(): # pragma: nocover text = bash_completion_path.read_text() result = subprocess.run( [ diff --git a/tests/test_completion/test_completion_install.py b/tests/test_completion/test_completion_install.py index ffddb7256d..6b47f4f317 100644 --- a/tests/test_completion/test_completion_install.py +++ b/tests/test_completion/test_completion_install.py @@ -83,7 +83,7 @@ def test_completion_install_fish(): script_path = Path(mod.__file__) completion_path: Path = Path.home() / f".config/fish/completions/{script_path.name}.fish" text = "" - if completion_path.is_file(): + if completion_path.is_file(): # pragma: nocover text = completion_path.read_text() result = subprocess.run( ["coverage", "run", mod.__file__, "--install-completion", "fish"], @@ -114,7 +114,7 @@ def test_completion_install_powershell(): completion_path: Path = Path.home() / f".config/powershell/Microsoft.PowerShell_profile.ps1" completion_path_bytes = f"{completion_path}\n".encode("windows-1252") text = "" - if completion_path.is_file(): + if completion_path.is_file(): # pragma: nocover text = completion_path.read_text() with mock.patch.object(