@@ -65,8 +65,12 @@ def test_callback_step_output_expr():
65
65
outputs = [outputParam1 , outputParam2 ],
66
66
)
67
67
68
- assert cb_step .properties .Outputs ['output1' ].expr == {"Get" : "Steps.MyCallbackStep.OutputParameters['output1']" }
69
- assert cb_step .properties .Outputs ['output2' ].expr == {"Get" : "Steps.MyCallbackStep.OutputParameters['output2']" }
68
+ assert cb_step .properties .Outputs ["output1" ].expr == {
69
+ "Get" : "Steps.MyCallbackStep.OutputParameters['output1']"
70
+ }
71
+ assert cb_step .properties .Outputs ["output2" ].expr == {
72
+ "Get" : "Steps.MyCallbackStep.OutputParameters['output2']"
73
+ }
70
74
71
75
72
76
def test_pipeline_interpolates_callback_outputs ():
@@ -84,7 +88,7 @@ def test_pipeline_interpolates_callback_outputs():
84
88
name = "MyCallbackStep2" ,
85
89
depends_on = ["TestStep" ],
86
90
sqs_queue_url = "https://sqs.us-east-2.amazonaws.com/123456789012/MyQueue" ,
87
- inputs = {"arg1" : cb_step1 .properties .Outputs [' output1' ]},
91
+ inputs = {"arg1" : cb_step1 .properties .Outputs [" output1" ]},
88
92
outputs = [outputParam2 ],
89
93
)
90
94
@@ -107,36 +111,18 @@ def test_pipeline_interpolates_callback_outputs():
107
111
{
108
112
"Name" : "MyCallbackStep1" ,
109
113
"Type" : "Callback" ,
110
- "Arguments" : {
111
- "arg1" : "foo"
112
- },
113
- "DependsOn" : [
114
- "TestStep"
115
- ],
114
+ "Arguments" : {"arg1" : "foo" },
115
+ "DependsOn" : ["TestStep" ],
116
116
"SqsQueueUrl" : "https://sqs.us-east-2.amazonaws.com/123456789012/MyQueue" ,
117
- "OutputParameters" : [
118
- {
119
- "OutputName" : "output1" ,
120
- "OutputType" : "String"
121
- }
122
- ]
117
+ "OutputParameters" : [{"OutputName" : "output1" , "OutputType" : "String" }],
123
118
},
124
119
{
125
120
"Name" : "MyCallbackStep2" ,
126
121
"Type" : "Callback" ,
127
- "Arguments" : {
128
- "arg1" : {"Get" : "Steps.MyCallbackStep1.OutputParameters['output1']" }
129
- },
130
- "DependsOn" : [
131
- "TestStep"
132
- ],
122
+ "Arguments" : {"arg1" : {"Get" : "Steps.MyCallbackStep1.OutputParameters['output1']" }},
123
+ "DependsOn" : ["TestStep" ],
133
124
"SqsQueueUrl" : "https://sqs.us-east-2.amazonaws.com/123456789012/MyQueue" ,
134
- "OutputParameters" : [
135
- {
136
- "OutputName" : "output2" ,
137
- "OutputType" : "String"
138
- }
139
- ]
140
- }
141
- ]
125
+ "OutputParameters" : [{"OutputName" : "output2" , "OutputType" : "String" }],
126
+ },
127
+ ],
142
128
}
0 commit comments