@@ -342,32 +342,43 @@ def test_run_job_with_input_data(cli_runner, cleanup, pi_test_files, cwl_file, i
342342
343343
344344@pytest .mark .parametrize (
345- "cwl_file" ,
345+ "cwl_file, inputs_file " ,
346346 [
347347 # --- Hello World example ---
348348 # There is no input expected
349- "test/workflows/helloworld/description_basic.cwl" ,
349+ ( "test/workflows/helloworld/description_basic.cwl" , None ) ,
350350 # --- Crypto example ---
351351 # Complete
352- "test/workflows/crypto/description.cwl" ,
352+ ( "test/workflows/crypto/description.cwl" , None ) ,
353353 # Caesar only
354- "test/workflows/crypto/caesar.cwl" ,
354+ ( "test/workflows/crypto/caesar.cwl" , None ) ,
355355 # ROT13 only
356- "test/workflows/crypto/rot13.cwl" ,
356+ ( "test/workflows/crypto/rot13.cwl" , None ) ,
357357 # Base64 only
358- "test/workflows/crypto/base64.cwl" ,
358+ ( "test/workflows/crypto/base64.cwl" , None ) ,
359359 # MD5 only
360- "test/workflows/crypto/md5.cwl" ,
360+ ( "test/workflows/crypto/md5.cwl" , None ) ,
361361 # --- Pi example ---
362362 # Pi simulate transformation
363- "test/workflows/pi/pisimulate.cwl" ,
363+ ("test/workflows/pi/pisimulate.cwl" , None ),
364+ # --- Job Grouping ---
365+ (
366+ "test/workflows/automatic_job_grouping/job_grouping.cwl" ,
367+ "test/workflows/automatic_job_grouping/inputs_files-strings.yaml" ,
368+ ),
369+ # TODO: make this test sample work (problem is File not existing):
370+ # ("test/workflows/automatic_job_grouping/job_grouping.cwl",
371+ # "test/workflows/automatic_job_grouping/inputs_files.yaml")
364372 ],
365373)
366- def test_run_nonblocking_transformation_success (cli_runner , cleanup , cwl_file ):
374+ def test_run_nonblocking_transformation_success (cli_runner , cleanup , cwl_file , inputs_file ):
367375 """Test successful non-blocking transformation submission and execution."""
368376 # CWL file is the first argument
369377 command = ["transformation" , "submit" , cwl_file ]
370378
379+ if inputs_file :
380+ command .extend (["--inputs-file" , inputs_file ])
381+
371382 result = cli_runner .invoke (app , command )
372383 clean_output = strip_ansi_codes (result .stdout )
373384 assert "Transformation done" in clean_output , f"Failed to run the transformation: { result .stdout } "
0 commit comments