Skip to content

Commit

Permalink
✅ add test for snk create
Browse files Browse the repository at this point in the history
  • Loading branch information
Wytamma committed Nov 16, 2024
1 parent d3fcfb8 commit 5bdf7b6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_snk.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ def test_snk_uninstall(local_workflow: Workflow):
assert result.exit_code == 0
assert "Successfully uninstalled" in result.stdout

def test_snk_create(local_workflow: Workflow, tmp_path: Path):
result = runner.invoke(app, ["create", str(tmp_path), "--force"])
print(result.stdout)
assert result.exit_code == 0
assert (tmp_path / "snk.yaml").exists()
assert (tmp_path / "Snakefile").exists()

def test_import_create_cli(capsys):
from snk import create_cli
Expand Down

0 comments on commit 5bdf7b6

Please sign in to comment.