Skip to content

Commit eb51f6f

Browse files
committed
remove assert before assert_called_once_with
1 parent 5dd3c04 commit eb51f6f

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

tests/unit/sagemaker/feature_store/feature_processor/test_config_uploader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def remote_decorator_config_with_filter(sagemaker_session):
100100
def test_prepare_and_upload_callable(mock_stored_function, config_uploader, wrapped_func):
101101
mock_stored_function.save(wrapped_func).return_value = None
102102
config_uploader._prepare_and_upload_callable(wrapped_func, "s3_base_uri", sagemaker_session)
103-
assert mock_stored_function.assert_called_once_with(
103+
mock_stored_function.assert_called_once_with(
104104
s3_base_uri="s3_base_uri",
105105
s3_kms_key=config_uploader.remote_decorator_config.s3_kms_key,
106106
hmac_key="some_secret_key",
@@ -244,7 +244,7 @@ def test_prepare_step_input_channel(
244244
)
245245
remote_decorator_config = config_uploader.remote_decorator_config
246246

247-
assert mock_upload_callable.assert_called_once_with(wrapped_func)
247+
mock_upload_callable.assert_called_once_with(wrapped_func)
248248

249249
mock_script_upload.assert_called_once_with(
250250
spark_config=config_uploader.remote_decorator_config.spark_config,

tests/unit/sagemaker/feature_store/feature_processor/test_feature_scheduler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def test_to_pipeline(
269269
)
270270
assert pipeline_arn == PIPELINE_ARN
271271

272-
assert mock_upload_callable.assert_called_once_with(job_function)
272+
mock_upload_callable.assert_called_once_with(job_function)
273273
local_dependencies_path = mock_runtime_manager().snapshot()
274274
mock_python_version = mock_runtime_manager()._current_python_version()
275275
container_args.extend(["--client_python_version", mock_python_version])

tests/unit/sagemaker/modules/train/test_model_trainer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@ def mock_upload_data(path, bucket, key_prefix):
10481048

10491049
model_trainer.train()
10501050

1051-
assert mock_local_container.train.assert_called_once_with(
1051+
mock_local_container.train.assert_called_once_with(
10521052
training_job_name=unique_name,
10531053
instance_type=compute.instance_type,
10541054
instance_count=compute.instance_count,

tests/unit/sagemaker/remote_function/runtime_environment/test_runtime_environment_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ def test_run_pre_exec_script_cmd_error(isfile):
450450
def test_change_dir_permission(mock_subprocess_run):
451451
RuntimeEnvironmentManager().change_dir_permission(dirs=["a", "b", "c"], new_permission="777")
452452
expected_command = ["sudo", "chmod", "-R", "777", "a", "b", "c"]
453-
assert mock_subprocess_run.assert_called_once_with(
453+
mock_subprocess_run.assert_called_once_with(
454454
expected_command, check=True, stderr=subprocess.PIPE
455455
)
456456

tests/unit/sagemaker/remote_function/test_job.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ def test_start_with_spark(
11901190

11911191
assert job.job_name.startswith("job-function")
11921192

1193-
assert mock_stored_function.assert_called_once_with(
1193+
mock_stored_function.assert_called_once_with(
11941194
sagemaker_session=session(), s3_base_uri=f"{S3_URI}/{job.job_name}", s3_kms_key=None
11951195
)
11961196

tests/unit/test_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5781,7 +5781,7 @@ def test_start_query_execution(sagemaker_session):
57815781
query_string="query",
57825782
output_location="s3://results",
57835783
)
5784-
assert athena_mock.start_query_execution.assert_called_once_with(
5784+
athena_mock.start_query_execution.assert_called_once_with(
57855785
QueryString="query",
57865786
QueryExecutionContext={"Catalog": "catalog", "Database": "database"},
57875787
OutputLocation="s3://results",

0 commit comments

Comments
 (0)