20 lines
412 B
Python
20 lines
412 B
Python
from pathlib import Path
|
|
|
|
from tcga_downloader.download import build_gdc_command
|
|
|
|
|
|
def test_build_gdc_command():
|
|
cmd = build_gdc_command(Path("/tmp/m.tsv"), Path("/data"), processes=4, retries=3)
|
|
assert cmd == [
|
|
"gdc-client",
|
|
"download",
|
|
"-m",
|
|
"/tmp/m.tsv",
|
|
"-d",
|
|
"/data",
|
|
"--n-processes",
|
|
"4",
|
|
"--retry-amount",
|
|
"3",
|
|
]
|