@@ -232,7 +232,6 @@ def test_workflow_engine_shortcut_example_1(basic_engine):
232232 assert project_file_exists (output_file_b )
233233
234234
235- # @pytest.mark.skip(reason="The engine does not currently create the required variables")
236235def test_workflow_engine_simple_python_molprops (basic_engine ):
237236 # Arrange
238237 da , md = basic_engine
@@ -312,3 +311,88 @@ def test_workflow_engine_simple_python_molprops(basic_engine):
312311 # This test should generate a file in the simulated project directory
313312 assert project_file_exists (output_file_1 )
314313 assert project_file_exists (output_file_2 )
314+
315+
316+ @pytest .mark .skip (reason = "The engine does not currently create the required variables" )
317+ def test_workflow_engine_simple_python_molprops_with_option (basic_engine ):
318+ # Arrange
319+ da , md = basic_engine
320+ # Make sure files that should be generated by the test
321+ # do not exist before we run the test.
322+ output_file_1 = "step1.out.smi"
323+ assert not project_file_exists (output_file_1 )
324+ output_file_2 = "step2.out.smi"
325+ assert not project_file_exists (output_file_2 )
326+ # And create the test's input file.
327+ input_file_1 = "input1.smi"
328+ input_file_1_content = """O=C(CSCc1ccc(Cl)s1)N1CCC(O)CC1
329+ RDKit 3D
330+
331+ 18 19 0 0 0 0 0 0 0 0999 V2000
332+ 8.7102 -1.3539 24.2760 O 0 0 0 0 0 0 0 0 0 0 0 0
333+ 9.4334 -2.1203 23.6716 C 0 0 0 0 0 0 0 0 0 0 0 0
334+ 10.3260 -1.7920 22.4941 C 0 0 0 0 0 0 0 0 0 0 0 0
335+ 9.5607 -0.5667 21.3699 S 0 0 0 0 0 0 0 0 0 0 0 0
336+ 7.9641 -1.3976 21.0216 C 0 0 0 0 0 0 0 0 0 0 0 0
337+ 7.1007 -0.5241 20.1671 C 0 0 0 0 0 0 0 0 0 0 0 0
338+ 5.7930 -0.1276 20.3932 C 0 0 0 0 0 0 0 0 0 0 0 0
339+ 5.2841 0.6934 19.3422 C 0 0 0 0 0 0 0 0 0 0 0 0
340+ 6.2234 0.8796 18.3624 C 0 0 0 0 0 0 0 0 0 0 0 0
341+ 6.0491 1.8209 16.9402 Cl 0 0 0 0 0 0 0 0 0 0 0 0
342+ 7.6812 0.0795 18.6678 S 0 0 0 0 0 0 0 0 0 0 0 0
343+ 9.5928 -3.4405 24.2306 N 0 0 0 0 0 0 0 0 0 0 0 0
344+ 10.8197 -3.4856 25.0609 C 0 0 0 0 0 0 0 0 0 0 0 0
345+ 11.0016 -4.9279 25.4571 C 0 0 0 0 0 0 0 0 0 0 0 0
346+ 9.9315 -5.2800 26.4615 C 0 0 0 0 0 0 0 0 0 0 0 0
347+ 10.3887 -4.7677 27.7090 O 0 0 0 0 0 0 0 0 0 0 0 0
348+ 8.5793 -4.6419 26.1747 C 0 0 0 0 0 0 0 0 0 0 0 0
349+ 8.3826 -4.0949 24.7695 C 0 0 0 0 0 0 0 0 0 0 0 0
350+ 1 2 2 0
351+ 2 3 1 0
352+ 2 12 1 0
353+ 3 4 1 0
354+ 4 5 1 0
355+ 5 6 1 0
356+ 6 7 2 0
357+ 7 8 1 0
358+ 8 9 2 0
359+ 9 10 1 0
360+ 9 11 1 0
361+ 11 6 1 0
362+ 12 13 1 0
363+ 13 14 1 0
364+ 14 15 1 0
365+ 15 16 1 0
366+ 15 17 1 0
367+ 17 18 1 0
368+ 18 12 1 0
369+ M END
370+
371+ $$$$
372+ """
373+ with open (
374+ f"{ EXECUTION_DIRECTORY } /{ input_file_1 } " , mode = "wt" , encoding = "utf8"
375+ ) as input_file :
376+ input_file .writelines (input_file_1_content )
377+
378+ # Act
379+ r_wfid = start_workflow (
380+ md ,
381+ da ,
382+ "simple-python-molprops-with-options" ,
383+ {"candidateMolecules" : input_file_1 },
384+ )
385+
386+ # Assert
387+ wait_for_workflow (da , r_wfid )
388+ # Additional, detailed checks...
389+ # Check we only have one RunningWorkflowStep, and it succeeded
390+ response = da .get_running_workflow_steps (running_workflow_id = r_wfid )
391+ assert response ["count" ] == 2
392+ assert response ["running_workflow_steps" ][0 ]["done" ]
393+ assert response ["running_workflow_steps" ][0 ]["success" ]
394+ assert response ["running_workflow_steps" ][1 ]["done" ]
395+ assert response ["running_workflow_steps" ][1 ]["success" ]
396+ # This test should generate a file in the simulated project directory
397+ assert project_file_exists (output_file_1 )
398+ assert project_file_exists (output_file_2 )
0 commit comments