3535from sagemaker .workflow .pipeline import Pipeline
3636from sagemaker .workflow .steps import TrainingStep , ProcessingStep , TransformStep
3737from sagemaker .workflow .model_step import ModelStep
38- from sagemaker .workflow .parameters import ParameterInteger
38+ from sagemaker .workflow .parameters import ParameterInteger , ParameterString
3939from sagemaker .workflow .condition_step import ConditionStep
4040from sagemaker .workflow .fail_step import FailStep
4141from sagemaker .workflow .conditions import ConditionLessThanOrEqualTo
@@ -496,6 +496,7 @@ def test_local_processing_script_processor(sagemaker_local_session, sklearn_imag
496496
497497@pytest .mark .local_mode
498498def test_local_pipeline_with_processing_step (sklearn_latest_version , local_pipeline_session ):
499+ string_container_arg = ParameterString (name = "ProcessingContainerArg" , default_value = "foo" )
499500 sklearn_processor = SKLearnProcessor (
500501 framework_version = sklearn_latest_version ,
501502 role = "SageMakerRole" ,
@@ -509,6 +510,7 @@ def test_local_pipeline_with_processing_step(sklearn_latest_version, local_pipel
509510 processing_args = sklearn_processor .run (
510511 code = script_path ,
511512 inputs = [ProcessingInput (source = input_file_path , destination = "/opt/ml/processing/inputs/" )],
513+ arguments = ["--container_arg" , string_container_arg ],
512514 )
513515 processing_step = ProcessingStep (
514516 name = "sklearn_processor_local_pipeline" , step_args = processing_args
@@ -517,6 +519,7 @@ def test_local_pipeline_with_processing_step(sklearn_latest_version, local_pipel
517519 name = "local_pipeline_processing" ,
518520 steps = [processing_step ],
519521 sagemaker_session = local_pipeline_session ,
522+ parameters = [string_container_arg ],
520523 )
521524 pipeline .create ("SageMakerRole" , "pipeline for sdk integ testing" )
522525
0 commit comments