Skip to content

Commit

Permalink
Skip remote test without git (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianeboyd authored Aug 7, 2023
1 parent 65dfe01 commit 56a9fa2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions weasel/tests/cli/test_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

from weasel import app

from .test_cli_app import has_git

runner = CliRunner()


Expand Down Expand Up @@ -53,6 +55,7 @@ def assets(clone, project_dir: Path):
assert (project_dir / "assets/README.md").exists()


@pytest.mark.skipif(not has_git(), reason="git not installed")
def test_remote(project_dir: Path, remote_url: Path):
result = runner.invoke(app, ["assets", str(project_dir)])
assert result.exit_code == 0
Expand Down

0 comments on commit 56a9fa2

Please sign in to comment.