Skip to content

Commit

Permalink
✅ add tests for help and version
Browse files Browse the repository at this point in the history
  • Loading branch information
Wytamma committed May 2, 2024
1 parent 2d5c34a commit 51a75e1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_cli/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,12 @@ def test_run_with_config(tmp_path):
assert res.exit_code == 0, res.stderr
assert "cli" in res.stdout, res.stderr

def test_snakemake_help(local_runner: SnkCliRunner):
res = local_runner(["run", "-hs"])
assert res.exit_code == 0, res.stderr
assert "snakemake" in res.stdout

def test_snakemake_version(local_runner: SnkCliRunner):
res = local_runner(["run", "--snake-v"])
assert res.exit_code == 0, res.stderr
assert res.stdout in ["7.32.4\n", "8.10.8\n"]

0 comments on commit 51a75e1

Please sign in to comment.