Skip to content

Commit c8d134c

Browse files
committed
fix test
1 parent f4f207a commit c8d134c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

nf_core/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def command_pipelines_lint(
423423
)
424424
@click.option(
425425
"-a",
426-
"--api_download",
426+
"--api-download",
427427
is_flag=True,
428428
default=False,
429429
help="Download repos via GitHub API (allows for authentication).",

tests/test_cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ def test_cli_download(self, mock_dl):
174174
"container-cache-utilisation": "copy",
175175
"container-cache-index": "/path/index.txt",
176176
"parallel-downloads": 2,
177+
"api-download": False,
177178
}
178179

179180
cmd = ["pipelines", "download"] + self.assemble_params(params) + ["pipeline_name"]
@@ -195,6 +196,7 @@ def test_cli_download(self, mock_dl):
195196
params["container-cache-utilisation"],
196197
params["container-cache-index"],
197198
params["parallel-downloads"],
199+
params["api-download"],
198200
)
199201

200202
mock_dl.return_value.download_workflow.assert_called_once()

0 commit comments

Comments
 (0)