File tree Expand file tree Collapse file tree 3 files changed +2
-10
lines changed Expand file tree Collapse file tree 3 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,6 @@ def test_get_required_variable_names_for_simnple_python_molprops_with_options():
235
235
assert "rdkitPropertyValue" in rqd_variables
236
236
237
237
238
- @pytest .mark .skip (reason = "The decoder does not currently handle options processing" )
239
238
def test_set_variables_from_options_for_step_for_simnple_python_molprops_with_options ():
240
239
# Arrange
241
240
variables = {
@@ -244,15 +243,14 @@ def test_set_variables_from_options_for_step_for_simnple_python_molprops_with_op
244
243
}
245
244
246
245
# Act
247
- new_variables , error = decoder .set_variables_from_options_for_step (
246
+ new_variables = decoder .set_variables_from_options_for_step (
248
247
_SIMPLE_PYTHON_MOLPROPS_WITH_OPTIONS_WORKFLOW ,
249
248
variables ,
250
249
"step1" ,
251
250
)
252
251
253
252
# Assert
254
- assert error is None
255
- assert len (new_variables ) == 4
253
+ assert len (new_variables ) == 2
256
254
assert "name" in new_variables
257
255
assert "value" in new_variables
258
256
assert new_variables ["name" ] == "propertyName"
Original file line number Diff line number Diff line change @@ -313,7 +313,6 @@ def test_workflow_engine_simple_python_molprops(basic_engine):
313
313
assert project_file_exists (output_file_2 )
314
314
315
315
316
- # @pytest.mark.skip(reason="The engine does not currently create the required variables")
317
316
def test_workflow_engine_simple_python_molprops_with_options (basic_engine ):
318
317
# Arrange
319
318
da , md = basic_engine
Original file line number Diff line number Diff line change @@ -111,13 +111,8 @@ def set_variables_from_options_for_step(
111
111
assert isinstance (definition , dict )
112
112
assert step_name
113
113
114
- print ("workflow" , definition )
115
- print ("workflow_variables" , variables )
116
-
117
114
result = {}
118
115
options = definition .get ("variables" , {}).get ("options" , [])
119
- print ("options" , options )
120
- print ("variables" , variables )
121
116
122
117
for opt in options :
123
118
for step_alias in opt ["as" ]:
You can’t perform that action at this time.
0 commit comments