From 5bdf7b67defe262160f1ec2764bccc4789198567 Mon Sep 17 00:00:00 2001 From: Wytamma Wirth Date: Sat, 16 Nov 2024 22:38:33 +1100 Subject: [PATCH] :white_check_mark: add test for snk create --- tests/test_snk.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_snk.py b/tests/test_snk.py index 20fe4d3..a07136e 100644 --- a/tests/test_snk.py +++ b/tests/test_snk.py @@ -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