@@ -24,19 +24,21 @@ def test_workflow_input_placeholder():
2424 state_id = 'StateOne' ,
2525 parameters = {
2626 'ParamA' : 'SampleValueA' ,
27- 'ParamB' : workflow_input ['Key01' ],
28- 'ParamC' : workflow_input ['Key02' ]['Key03' ],
29- 'ParamD' : workflow_input ['Key01' ]['Key03' ],
27+ 'ParamB' : workflow_input ,
28+ 'ParamC' : workflow_input ['Key01' ],
29+ 'ParamD' : workflow_input ['Key02' ]['Key03' ],
30+ 'ParamE' : workflow_input ['Key01' ]['Key03' ],
3031 }
3132 )
3233
3334 expected_repr = {
3435 "Type" : "Pass" ,
3536 "Parameters" : {
3637 "ParamA" : "SampleValueA" ,
37- "ParamB.$" : "$$.Execution.Input['Key01']" ,
38- "ParamC.$" : "$$.Execution.Input['Key02']['Key03']" ,
39- "ParamD.$" : "$$.Execution.Input['Key01']['Key03']"
38+ "ParamB.$" : "$$.Execution.Input" ,
39+ "ParamC.$" : "$$.Execution.Input['Key01']" ,
40+ "ParamD.$" : "$$.Execution.Input['Key02']['Key03']" ,
41+ "ParamE.$" : "$$.Execution.Input['Key01']['Key03']"
4042 },
4143 "End" : True
4244 }
@@ -52,16 +54,18 @@ def test_step_input_placeholder():
5254 test_step_02 = Pass (
5355 state_id = 'StateTwo' ,
5456 parameters = {
55- 'ParamA' : test_step_01 .output ()["Response" ]["Key02" ],
56- "ParamB" : "SampleValueB"
57+ 'ParamA' : test_step_01 .output (),
58+ 'ParamB' : test_step_01 .output ()["Response" ]["Key02" ],
59+ "ParamC" : "SampleValueC"
5760 }
5861 )
5962
6063 expected_repr = {
6164 "Type" : "Pass" ,
6265 "Parameters" : {
63- "ParamA.$" : "$['Response']['Key02']" ,
64- "ParamB" : "SampleValueB"
66+ "ParamA.$" : "$" ,
67+ "ParamB.$" : "$['Response']['Key02']" ,
68+ "ParamC" : "SampleValueC"
6569 },
6670 "End" : True
6771 }
@@ -382,4 +386,4 @@ def test_schema_validation_for_step_input():
382386 'ParamA' : test_step_01 .output ()["Response" ].get ("Key01" , float ),
383387 "ParamB" : "SampleValueB"
384388 }
385- )
389+ )
0 commit comments