Files
galaxy/test/unit/tool_util/test_parameter_cwl_runtime_model.py
T
mvdbeek 152bc2ffa5 Add runtime model to API
Like job_internal but replaces dataset and dataset collection with file
and array / object of files.
2025-05-12 10:54:30 +02:00

27 lines
787 B
Python

from galaxy.tool_util.parameters.convert import cwl_runtime_model
from galaxy.tool_util.unittest_utils.parameters import parameter_bundle_for_file
def test_cwl_runtime_model_conditional():
model = parameter_bundle_for_file("gx_conditional_select")
rval = cwl_runtime_model(model)
assert rval
def test_cwl_runtime_model_data():
model = parameter_bundle_for_file("gx_data")
rval = cwl_runtime_model(model)
assert rval
def test_cwl_runtime_model_data_collection_list():
model = parameter_bundle_for_file("gx_data_collection_list")
rval = cwl_runtime_model(model)
assert rval
def test_cwl_runtime_model_data_collection_unknown_type():
model = parameter_bundle_for_file("gx_data_collection")
rval = cwl_runtime_model(model)
assert rval