@@ -146,6 +146,72 @@ def test_v1_2_workflow_top_level_sf_expr_array() -> None:
146146 )
147147
148148
149+ def test_v1_0_step_valuefrom_expr_multisource () -> None :
150+ """Convert a valueFrom expression that has multiple sources."""
151+ result , modified = traverse0 (
152+ parser .load_document (str (HERE / "../testdata/step-valuefrom2-wf_v10.cwl" )),
153+ False ,
154+ False ,
155+ False ,
156+ False ,
157+ )
158+
159+
160+ def test_v1_1_step_valuefrom_expr_multisource () -> None :
161+ """Convert a valueFrom expression that has multiple sources."""
162+ result , modified = traverse1 (
163+ parser1 .load_document (str (HERE / "../testdata/step-valuefrom2-wf_v11.cwl" )),
164+ False ,
165+ False ,
166+ False ,
167+ False ,
168+ )
169+
170+
171+ def test_v1_2_step_valuefrom_expr_multisource () -> None :
172+ """Convert a valueFrom expression that has multiple sources."""
173+ result , modified = traverse2 (
174+ parser2 .load_document (str (HERE / "../testdata/step-valuefrom2-wf_v12.cwl" )),
175+ False ,
176+ False ,
177+ False ,
178+ False ,
179+ )
180+
181+
182+ def test_v1_0_step_valuefrom_expr_sibling_inputs () -> None :
183+ """Convert a valueFrom expression from a step input that has uninvolved sibling inputs."""
184+ result , modified = traverse0 (
185+ parser .load_document (str (HERE / "../testdata/step-valuefrom3-wf_v10.cwl" )),
186+ False ,
187+ False ,
188+ False ,
189+ False ,
190+ )
191+
192+
193+ def test_v1_1_step_valuefrom_expr_sibling_inputs () -> None :
194+ """Convert a valueFrom expression from a step input that has uninvolved sibling inputs."""
195+ result , modified = traverse1 (
196+ parser1 .load_document (str (HERE / "../testdata/step-valuefrom3-wf_v11.cwl" )),
197+ False ,
198+ False ,
199+ False ,
200+ False ,
201+ )
202+
203+
204+ def test_v1_2_step_valuefrom_expr_sibling_inputs () -> None :
205+ """Convert a valueFrom expression from a step input that has uninvolved sibling inputs."""
206+ result , modified = traverse2 (
207+ parser2 .load_document (str (HERE / "../testdata/step-valuefrom3-wf_v12.cwl" )),
208+ False ,
209+ False ,
210+ False ,
211+ False ,
212+ )
213+
214+
149215@pytest .fixture (scope = "session" )
150216def cwl_v1_0_dir (
151217 tmp_path_factory : TempPathFactory ,
0 commit comments