4343 env_var  as  gca_env_var_v1beta1 ,
4444 explanation  as  gca_explanation_v1beta1 ,
4545 io  as  gca_io_v1beta1 ,
46-  job_state  as  gca_job_state_v1beta1 ,
4746 model  as  gca_model_v1beta1 ,
4847 endpoint  as  gca_endpoint_v1beta1 ,
4948 machine_resources  as  gca_machine_resources_v1beta1 ,
5554from  google .cloud .aiplatform_v1 .services .endpoint_service  import  (
5655 client  as  endpoint_service_client ,
5756)
58- from  google .cloud .aiplatform_v1 .services .job_service  import  (
59-  client  as  job_service_client ,
60- )
57+ from  google .cloud .aiplatform_v1 .services .job_service  import  client  as  job_service_client 
6158from  google .cloud .aiplatform_v1 .services .model_service  import  (
6259 client  as  model_service_client ,
6360)
6461from  google .cloud .aiplatform_v1 .types  import  (
6562 batch_prediction_job  as  gca_batch_prediction_job ,
66-  env_var  as  gca_env_var ,
6763 io  as  gca_io ,
6864 job_state  as  gca_job_state ,
6965 model  as  gca_model ,
@@ -184,6 +180,7 @@ def get_model_mock():
184180 )
185181 yield  get_model_mock 
186182
183+ 
187184@pytest .fixture  
188185def  get_model_with_explanations_mock ():
189186 with  mock .patch .object (
@@ -194,6 +191,7 @@ def get_model_with_explanations_mock():
194191 )
195192 yield  get_model_mock 
196193
194+ 
197195@pytest .fixture  
198196def  get_model_with_custom_location_mock ():
199197 with  mock .patch .object (
@@ -244,7 +242,6 @@ def upload_model_with_explanations_mock():
244242 yield  upload_model_mock 
245243
246244
247- 
248245@pytest .fixture  
249246def  upload_model_with_custom_project_mock ():
250247 with  mock .patch .object (
@@ -300,7 +297,6 @@ def deploy_model_mock():
300297 yield  deploy_model_mock 
301298
302299
303- 
304300@pytest .fixture  
305301def  deploy_model_with_explanations_mock ():
306302 with  mock .patch .object (
@@ -343,6 +339,7 @@ def create_batch_prediction_job_mock():
343339 create_batch_prediction_job_mock .return_value  =  batch_prediction_job_mock 
344340 yield  create_batch_prediction_job_mock 
345341
342+ 
346343@pytest .fixture  
347344def  create_batch_prediction_job_with_explanations_mock ():
348345 with  mock .patch .object (
@@ -355,6 +352,7 @@ def create_batch_prediction_job_with_explanations_mock():
355352 create_batch_prediction_job_mock .return_value  =  batch_prediction_job_mock 
356353 yield  create_batch_prediction_job_mock 
357354
355+ 
358356@pytest .fixture  
359357def  create_client_mock ():
360358 with  mock .patch .object (
@@ -746,7 +744,9 @@ def test_deploy_no_endpoint_dedicated_resources(self, deploy_model_mock, sync):
746744 "get_endpoint_mock" , "get_model_mock" , "create_endpoint_mock"  
747745 ) 
748746 @pytest .mark .parametrize ("sync" , [True , False ]) 
749-  def  test_deploy_no_endpoint_with_explanations (self , deploy_model_with_explanations_mock , sync ):
747+  def  test_deploy_no_endpoint_with_explanations (
748+  self , deploy_model_with_explanations_mock , sync 
749+  ):
750750 aiplatform .init (project = _TEST_PROJECT , location = _TEST_LOCATION )
751751 test_model  =  models .Model (_TEST_ID )
752752 test_endpoint  =  test_model .deploy (
@@ -834,9 +834,7 @@ def test_init_aiplatform_with_encryption_key_name_and_batch_predict_gcs_source_a
834834 ),
835835 input_config = gca_batch_prediction_job .BatchPredictionJob .InputConfig (
836836 instances_format = "jsonl" ,
837-  gcs_source = gca_io .GcsSource (
838-  uris = [_TEST_BATCH_PREDICTION_GCS_SOURCE ]
839-  ),
837+  gcs_source = gca_io .GcsSource (uris = [_TEST_BATCH_PREDICTION_GCS_SOURCE ]),
840838 ),
841839 output_config = gca_batch_prediction_job .BatchPredictionJob .OutputConfig (
842840 gcs_destination = gca_io .GcsDestination (
@@ -940,7 +938,9 @@ def test_batch_predict_gcs_source_bq_dest(
940938
941939 @pytest .mark .parametrize ("sync" , [True , False ]) 
942940 @pytest .mark .usefixtures ("get_model_mock" , "get_batch_prediction_job_mock" ) 
943-  def  test_batch_predict_with_all_args (self , create_batch_prediction_job_with_explanations_mock , sync ):
941+  def  test_batch_predict_with_all_args (
942+  self , create_batch_prediction_job_with_explanations_mock , sync 
943+  ):
944944 aiplatform .init (project = _TEST_PROJECT , location = _TEST_LOCATION )
945945 test_model  =  models .Model (_TEST_ID )
946946 creds  =  auth_credentials .AnonymousCredentials ()
@@ -977,7 +977,9 @@ def test_batch_predict_with_all_args(self, create_batch_prediction_job_with_expl
977977 ),
978978 input_config = gca_batch_prediction_job_v1beta1 .BatchPredictionJob .InputConfig (
979979 instances_format = "jsonl" ,
980-  gcs_source = gca_io_v1beta1 .GcsSource (uris = [_TEST_BATCH_PREDICTION_GCS_SOURCE ]),
980+  gcs_source = gca_io_v1beta1 .GcsSource (
981+  uris = [_TEST_BATCH_PREDICTION_GCS_SOURCE ]
982+  ),
981983 ),
982984 output_config = gca_batch_prediction_job_v1beta1 .BatchPredictionJob .OutputConfig (
983985 gcs_destination = gca_io_v1beta1 .GcsDestination (
0 commit comments