Skip to content

Commit fe78dfd

Browse files
committed
Fix the failed unit tests
1 parent 504c4ff commit fe78dfd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/unit/test_sagemaker_steps.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ def sklearn_processor():
167167
instance_count=1,
168168
)
169169

170+
processor.sagemaker_session = MagicMock()
171+
processor.sagemaker_session.boto_region_name = 'us-east-1'
172+
processor.sagemaker_session._default_bucket = 'sagemaker'
173+
170174
return processor
171175

172176
@patch('botocore.client.BaseClient._make_api_call', new=mock_boto_api_call)
@@ -643,10 +647,7 @@ def test_processing_step_creation(sklearn_processor):
643647
}
644648
},
645649
'ProcessingJobName': 'MyProcessingJob',
646-
'RoleArn': EXECUTION_ROLE,
647-
'StoppingCondition': {
648-
'MaxRuntimeInSeconds': None
649-
}
650+
'RoleArn': EXECUTION_ROLE
650651
},
651652
'Resource': 'arn:aws:states:::sagemaker:createProcessingJob.sync',
652653
'End': True

0 commit comments

Comments
 (0)