We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ec0b48 commit 7359227Copy full SHA for 7359227
tests/unit/test_steps.py
@@ -214,6 +214,23 @@ def test_task_state_creation():
214
'End': True
215
}
216
217
+def test_task_state_create_fail_for_duplicated_dynamic_timeout_fields():
218
+ with pytest.raises(ValueError):
219
+ Task(
220
+ 'Task',
221
+ resource='arn:aws:lambda:us-east-1:1234567890:function:StartLambda',
222
+ timeout_seconds=1,
223
+ timeout_seconds_path='$.timeout',
224
+ )
225
+
226
227
228
229
230
+ heartbeat_seconds=1,
231
+ heartbeat_seconds_path='$.heartbeat',
232
233
234
def test_parallel_state_creation():
235
parallel_state = Parallel('Parallel')
236
parallel_state.add_branch(Pass('Branch 1'))
0 commit comments