File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -351,19 +351,20 @@ def test_retry_fail_for_unsupported_state():
351
351
352
352
def test_result_path_none ():
353
353
task_state = Task ('Task' , resource = 'arn:aws:lambda:us-east-1:1234567890:function:StartLambda' , result_path = None )
354
- assert task_state .to_dict () == {
355
- 'Type' : 'Task' ,
356
- 'Resource' : 'arn:aws:lambda:us-east-1:1234567890:function:StartLambda' ,
357
- 'ResultPath' : None ,
358
- 'End' : True
359
- }
354
+ assert 'ResultPath' in task_state .to_dict ()
355
+ assert task_state .to_dict ()['ResultPath' ] is None
360
356
361
357
362
358
def test_result_path_none_converted_to_null ():
363
359
task_state = Task ('Task' , resource = 'arn:aws:lambda:us-east-1:1234567890:function:StartLambda' , result_path = None )
364
360
assert '"ResultPath": null' in task_state .to_json ()
365
361
366
362
363
+ def test_default_result_path_not_included ():
364
+ task_state = Task ('Task' , resource = 'arn:aws:lambda:us-east-1:1234567890:function:StartLambda' )
365
+ assert 'ResultPath' not in task_state .to_dict ()
366
+
367
+
367
368
def test_default_result_path_not_converted_to_null ():
368
369
task_state = Task ('Task' , resource = 'arn:aws:lambda:us-east-1:1234567890:function:StartLambda' )
369
370
assert '"ResultPath": null' not in task_state .to_json ()
You can’t perform that action at this time.
0 commit comments