File tree 1 file changed +19
-0
lines changed
tests/unit/sagemaker/workflow 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -207,3 +207,22 @@ def test_repack_model_step_with_source_dir(estimator, source_dir):
207
207
assert step .properties .TrainingJobName .expr == {
208
208
"Get" : "Steps.MyRepackModelStep.TrainingJobName"
209
209
}
210
+
211
+
212
+ def test_repack_model_step_with_output_path (estimator ):
213
+ repack_output_path = "s3://{BUCKET}/repack_output"
214
+ model_data = f"s3://{ BUCKET } /model.tar.gz"
215
+ entry_point = "inference.py"
216
+ step = _RepackModelStep (
217
+ name = "MyRepackModelStep" ,
218
+ sagemaker_session = estimator .sagemaker_session ,
219
+ role = estimator .role ,
220
+ model_data = model_data ,
221
+ entry_point = entry_point ,
222
+ source_dir = source_dir ,
223
+ repack_output_path = repack_output_path ,
224
+ )
225
+ request_dict = step .to_request ()
226
+
227
+ assert request_dict ["Arguments" ]["DebugHookConfig" ]["S3OutputPath" ] == repack_output_path
228
+ assert request_dict ["Arguments" ]["OutputDataConfig" ]["S3OutputPath" ] == repack_output_path
You can’t perform that action at this time.
0 commit comments