File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,10 @@ def sklearn_processor():
167
167
instance_count = 1 ,
168
168
)
169
169
170
+ processor .sagemaker_session = MagicMock ()
171
+ processor .sagemaker_session .boto_region_name = 'us-east-1'
172
+ processor .sagemaker_session ._default_bucket = 'sagemaker'
173
+
170
174
return processor
171
175
172
176
@patch ('botocore.client.BaseClient._make_api_call' , new = mock_boto_api_call )
@@ -643,10 +647,7 @@ def test_processing_step_creation(sklearn_processor):
643
647
}
644
648
},
645
649
'ProcessingJobName' : 'MyProcessingJob' ,
646
- 'RoleArn' : EXECUTION_ROLE ,
647
- 'StoppingCondition' : {
648
- 'MaxRuntimeInSeconds' : None
649
- }
650
+ 'RoleArn' : EXECUTION_ROLE
650
651
},
651
652
'Resource' : 'arn:aws:states:::sagemaker:createProcessingJob.sync' ,
652
653
'End' : True
You can’t perform that action at this time.
0 commit comments