@@ -208,37 +208,6 @@ def test_workflow_engine_example_smiles_to_file(basic_engine):
208
208
assert project_file_exists (output_file )
209
209
210
210
211
- @pytest .mark .skip ("Unrealistic test" )
212
- def test_workflow_engine_shortcut_example_1 (basic_engine ):
213
- # Arrange
214
- md , da = basic_engine
215
-
216
- # Make sure files that should be generated by the test
217
- # do not exist before we run the test.
218
- output_file_a = "a.sdf"
219
- assert not project_file_exists (output_file_a )
220
- output_file_b = "b.sdf"
221
- assert not project_file_exists (output_file_b )
222
-
223
- # Act
224
- r_wfid = start_workflow (md , da , "shortcut-example-1" , {})
225
-
226
- # Assert
227
- wait_for_workflow (da , r_wfid )
228
- # Additional, detailed checks...
229
- # Check we only have one RunningWorkflowStep, and it succeeded
230
- response = da .get_running_workflow_steps (running_workflow_id = r_wfid )
231
- assert response ["count" ] == 2
232
- assert response ["running_workflow_steps" ][0 ]["done" ]
233
- assert response ["running_workflow_steps" ][0 ]["success" ]
234
- assert response ["running_workflow_steps" ][1 ]["done" ]
235
- assert response ["running_workflow_steps" ][1 ]["success" ]
236
- # This test should generate a file in the simulated project directory
237
- assert project_file_exists (output_file_a )
238
- assert project_file_exists (output_file_b )
239
-
240
-
241
- @pytest .mark .skip ("temporary skip" )
242
211
def test_workflow_engine_simple_python_molprops (basic_engine ):
243
212
# Arrange
244
213
md , da = basic_engine
@@ -249,13 +218,7 @@ def test_workflow_engine_simple_python_molprops(basic_engine):
249
218
output = "step1.out.smi" ,
250
219
)
251
220
252
- # Make sure files that should be generated by the test
253
- # do not exist before we run the test.
254
- output_file_1 = "step1.out.smi"
255
- assert not project_file_exists (output_file_1 )
256
- output_file_2 = "step2.out.smi"
257
- assert not project_file_exists (output_file_2 )
258
- # And create the test's input file.
221
+ # Create the test's input file.
259
222
input_file_1 = "input1.smi"
260
223
input_file_1_content = """O=C(CSCc1ccc(Cl)s1)N1CCC(O)CC1
261
224
RDKit 3D
@@ -307,9 +270,22 @@ def test_workflow_engine_simple_python_molprops(basic_engine):
307
270
) as input_file :
308
271
input_file .writelines (input_file_1_content )
309
272
273
+ # Make sure files that should be generated by the test
274
+ # do not exist before we run the test.
275
+ output_file_1 = "results.smi"
276
+ assert not project_file_exists (output_file_1 )
277
+ output_file_2 = "clustered-results.smi"
278
+ assert not project_file_exists (output_file_2 )
279
+
310
280
# Act
311
281
r_wfid = start_workflow (
312
- md , da , "simple-python-molprops" , {"candidateMolecules" : input_file_1 }
282
+ md ,
283
+ da ,
284
+ "simple-python-molprops" ,
285
+ {
286
+ "candidateMolecules" : input_file_1 ,
287
+ "clusteredMolecules" : "clustered-results.smi" ,
288
+ },
313
289
)
314
290
315
291
# Assert
@@ -322,12 +298,10 @@ def test_workflow_engine_simple_python_molprops(basic_engine):
322
298
assert response ["running_workflow_steps" ][0 ]["success" ]
323
299
assert response ["running_workflow_steps" ][1 ]["done" ]
324
300
assert response ["running_workflow_steps" ][1 ]["success" ]
325
- # This test should generate a file in the simulated project directory
326
- assert project_file_exists (output_file_1 )
301
+ # This test should generate the expected file in the simulated project directory
327
302
assert project_file_exists (output_file_2 )
328
303
329
304
330
- @pytest .mark .skip ("Unrealistic test" )
331
305
def test_workflow_engine_simple_python_molprops_with_options (basic_engine ):
332
306
# Arrange
333
307
md , da = basic_engine
@@ -424,7 +398,6 @@ def test_workflow_engine_simple_python_molprops_with_options(basic_engine):
424
398
assert project_file_exists (output_file_2 )
425
399
426
400
427
- @pytest .mark .skip ("Unrealistic test" )
428
401
def test_workflow_engine_simple_python_fanout (basic_engine ):
429
402
# Arrange
430
403
md , da = basic_engine
0 commit comments