Skip to content

Commit

Permalink
✅ Add coverage instructions to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo committed Mar 19, 2020
1 parent 0830c02 commit 0db91f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_completion/test_completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
[
Expand Down
4 changes: 2 additions & 2 deletions tests/test_completion/test_completion_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down Expand Up @@ -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(
Expand Down

1 comment on commit 0db91f3

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.