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 @@ -160,17 +160,18 @@ def tensorflow_estimator():
160
160
161
161
@pytest .fixture
162
162
def sklearn_processor ():
163
+ sagemaker_session = MagicMock ()
164
+ sagemaker_session .boto_region_name = 'us-east-1'
165
+ sagemaker_session ._default_bucket = 'sagemaker'
166
+
163
167
processor = SKLearnProcessor (
164
168
framework_version = "0.20.0" ,
165
169
role = EXECUTION_ROLE ,
166
170
instance_type = "ml.m5.xlarge" ,
167
171
instance_count = 1 ,
172
+ sagemaker_session = sagemaker_session
168
173
)
169
174
170
- processor .sagemaker_session = MagicMock ()
171
- processor .sagemaker_session .boto_region_name = 'us-east-1'
172
- processor .sagemaker_session ._default_bucket = 'sagemaker'
173
-
174
175
return processor
175
176
176
177
@patch ('botocore.client.BaseClient._make_api_call' , new = mock_boto_api_call )
You can’t perform that action at this time.
0 commit comments