Skip to content

Commit 689d75b

Browse files
committed
finish test_remap_names
1 parent 7e7752a commit 689d75b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/test_cwlprov_crate_builder.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,3 +1199,23 @@ def test_remap_names(data_dir, tmpdir):
11991199
assert greptool_input_dir is wf_input_dir
12001200
greptool_output_dir = greptool_results[0]
12011201
assert greptool_output_dir.id == "grep_out/"
1202+
ucasetool_action = action_map["packed.cwl#ucasetool.cwl"]
1203+
ucasetool_objects = ucasetool_action["object"]
1204+
ucasetool_results = ucasetool_action["result"]
1205+
assert len(ucasetool_objects) == 1
1206+
assert len(ucasetool_results) == 1
1207+
ucasetool_input_dir = ucasetool_objects[0]
1208+
assert ucasetool_input_dir is greptool_output_dir
1209+
ucasetool_output_dir = ucasetool_results[0]
1210+
assert ucasetool_output_dir is wf_output_dir
1211+
for e in crate.data_entities:
1212+
assert "alternateName" not in e
1213+
for p in (
1214+
"grepucase_in/bar",
1215+
"grepucase_in/foo",
1216+
"grep_out/bar.out",
1217+
"grep_out/foo.out",
1218+
"ucase_out/bar.out/bar.out.out",
1219+
"ucase_out/foo.out/foo.out.out",
1220+
):
1221+
assert (output / p).is_file()

0 commit comments

Comments
 (0)