diff --git a/tests/unit/aiplatform/test_end_to_end.py b/tests/unit/aiplatform/test_end_to_end.py index 37b6d576496..0b5e19b3b9e 100644 --- a/tests/unit/aiplatform/test_end_to_end.py +++ b/tests/unit/aiplatform/test_end_to_end.py @@ -224,7 +224,7 @@ def test_dataset_create_to_model_predict( }, "python_package_spec": { "executor_image_uri": test_training_jobs._TEST_TRAINING_CONTAINER_IMAGE, - "python_module": source_utils._TrainingScriptPythonPackager.module_name, + "python_module": test_training_jobs._TEST_MODULE_NAME, "package_uris": [test_training_jobs._TEST_OUTPUT_PYTHON_PACKAGE_PATH], "args": true_args, }, @@ -411,7 +411,7 @@ def test_dataset_create_to_model_predict_with_pipeline_fail( }, "python_package_spec": { "executor_image_uri": test_training_jobs._TEST_TRAINING_CONTAINER_IMAGE, - "python_module": source_utils._TrainingScriptPythonPackager.module_name, + "python_module": test_training_jobs._TEST_MODULE_NAME, "package_uris": [test_training_jobs._TEST_OUTPUT_PYTHON_PACKAGE_PATH], "args": true_args, }, diff --git a/tests/unit/aiplatform/test_training_jobs.py b/tests/unit/aiplatform/test_training_jobs.py index 2ea56b667e0..5e65f23f55c 100644 --- a/tests/unit/aiplatform/test_training_jobs.py +++ b/tests/unit/aiplatform/test_training_jobs.py @@ -996,7 +996,7 @@ def test_run_call_pipeline_service_create_with_bigquery_destination( }, "python_package_spec": { "executor_image_uri": _TEST_TRAINING_CONTAINER_IMAGE, - "python_module": source_utils._TrainingScriptPythonPackager.module_name, + "python_module": test_training_jobs._TEST_MODULE_NAME, "package_uris": [_TEST_OUTPUT_PYTHON_PACKAGE_PATH], "args": true_args, "env": true_env, @@ -1304,7 +1304,7 @@ def test_run_call_pipeline_service_create_with_no_dataset( }, "python_package_spec": { "executor_image_uri": _TEST_TRAINING_CONTAINER_IMAGE, - "python_module": source_utils._TrainingScriptPythonPackager.module_name, + "python_module": test_training_jobs._TEST_MODULE_NAME, "package_uris": [_TEST_OUTPUT_PYTHON_PACKAGE_PATH], "args": true_args, "env": true_env, @@ -1607,7 +1607,7 @@ def test_run_call_pipeline_service_create_distributed_training( }, "python_package_spec": { "executor_image_uri": _TEST_TRAINING_CONTAINER_IMAGE, - "python_module": source_utils._TrainingScriptPythonPackager.module_name, + "python_module": test_training_jobs._TEST_MODULE_NAME, "package_uris": [_TEST_OUTPUT_PYTHON_PACKAGE_PATH], "args": true_args, "env": true_env, @@ -1776,7 +1776,7 @@ def test_run_call_pipeline_service_create_distributed_training_with_reduction_se }, "python_package_spec": { "executor_image_uri": _TEST_TRAINING_CONTAINER_IMAGE, - "python_module": source_utils._TrainingScriptPythonPackager.module_name, + "python_module": test_training_jobs._TEST_MODULE_NAME, "package_uris": [_TEST_OUTPUT_PYTHON_PACKAGE_PATH], "args": true_args, "env": true_env, @@ -2014,7 +2014,7 @@ def test_run_call_pipeline_service_create_with_nontabular_dataset_without_model_ }, "python_package_spec": { "executor_image_uri": _TEST_TRAINING_CONTAINER_IMAGE, - "python_module": source_utils._TrainingScriptPythonPackager.module_name, + "python_module": test_training_jobs._TEST_MODULE_NAME, "package_uris": [_TEST_OUTPUT_PYTHON_PACKAGE_PATH], "args": true_args, },