Skip to content

Commit

Permalink
✅ Add custom testing .zshrc logic for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo committed Jul 19, 2020
1 parent efc2c26 commit fa97ab8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_completion/test_completion_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ def test_completion_install_bash():
def test_completion_install_zsh():
completion_path: Path = Path.home() / ".zshrc"
text = ""
if not completion_path.is_file(): # pragma: nocover
completion_path.write_text('echo "custom .zshrc"')
if completion_path.is_file():
text = completion_path.read_text()
result = subprocess.run(
Expand Down

1 comment on commit fa97ab8

@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.