Skip to content

Commit 5bdf7b6

Browse files
committed
✅ add test for snk create
1 parent d3fcfb8 commit 5bdf7b6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_snk.py

+6
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ def test_snk_uninstall(local_workflow: Workflow):
7676
assert result.exit_code == 0
7777
assert "Successfully uninstalled" in result.stdout
7878

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

8086
def test_import_create_cli(capsys):
8187
from snk import create_cli

0 commit comments

Comments
 (0)