Skip to content

Commit 0fd7f1d

Browse files
committed
change(tests): fix failing processing unit tests
1 parent 03e7cee commit 0fd7f1d

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

tests/unit/sagemaker/spark/test_processing.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,17 @@ def test_configuration_validation(config, expected, sagemaker_session) -> None:
200200
def test_spark_processor_base_run(mock_super_run, spark_processor_base):
201201
spark_processor_base.run(submit_app="app")
202202

203-
mock_super_run.assert_called_with("app", None, None, None, True, True, None, None, None)
203+
mock_super_run.assert_called_with(
204+
code="app",
205+
inputs=None,
206+
outputs=None,
207+
arguments=None,
208+
wait=True,
209+
logs=True,
210+
job_name=None,
211+
experiment_config=None,
212+
kms_key=None,
213+
)
204214

205215

206216
@pytest.mark.parametrize(

tests/unit/sagemaker/workflow/test_steps.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ def test_processing_step_normalizes_args(mock_normalize_args, sagemaker_session)
435435
inputs=step.inputs,
436436
outputs=step.outputs,
437437
code=step.code,
438+
source_dir=None,
438439
)
439440

440441

0 commit comments

Comments
 (0)