Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-mccarthy committed Apr 5, 2022
1 parent a34e3a4 commit 3914dd0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/unit/aiplatform/test_pipeline_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def test_run_call_pipeline_service_create(
runtime_config = gca_pipeline_job_v1.PipelineJob.RuntimeConfig()._pb
json_format.ParseDict(expected_runtime_config_dict, runtime_config)

job_spec = job_spec if isinstance(job_spec, dict) else yaml.safe_load(job_spec)
job_spec = yaml.safe_load(job_spec)
pipeline_spec = job_spec.get("pipelineSpec") or job_spec

# Construct expected request
Expand Down Expand Up @@ -435,7 +435,7 @@ def test_run_call_pipeline_service_create_with_timeout(
runtime_config = gca_pipeline_job_v1.PipelineJob.RuntimeConfig()._pb
json_format.ParseDict(expected_runtime_config_dict, runtime_config)

job_spec = job_spec if isinstance(job_spec, dict) else yaml.safe_load(job_spec)
job_spec = yaml.safe_load(job_spec)
pipeline_spec = job_spec.get("pipelineSpec") or job_spec

# Construct expected request
Expand Down Expand Up @@ -516,7 +516,7 @@ def test_run_call_pipeline_service_create_legacy(
runtime_config = gca_pipeline_job_v1.PipelineJob.RuntimeConfig()._pb
json_format.ParseDict(expected_runtime_config_dict, runtime_config)

job_spec = job_spec if isinstance(job_spec, dict) else yaml.safe_load(job_spec)
job_spec = yaml.safe_load(job_spec)
pipeline_spec = job_spec.get("pipelineSpec") or job_spec

# Construct expected request
Expand Down Expand Up @@ -597,7 +597,7 @@ def test_run_call_pipeline_service_create_tfx(
runtime_config = gca_pipeline_job_v1.PipelineJob.RuntimeConfig()._pb
json_format.ParseDict(expected_runtime_config_dict, runtime_config)

job_spec = job_spec if isinstance(job_spec, dict) else yaml.safe_load(job_spec)
job_spec = yaml.safe_load(job_spec)
pipeline_spec = job_spec.get("pipelineSpec") or job_spec

# Construct expected request
Expand Down Expand Up @@ -669,7 +669,7 @@ def test_submit_call_pipeline_service_pipeline_job_create(
runtime_config = gca_pipeline_job_v1.PipelineJob.RuntimeConfig()._pb
json_format.ParseDict(expected_runtime_config_dict, runtime_config)

job_spec = job_spec if isinstance(job_spec, dict) else yaml.safe_load(job_spec)
job_spec = yaml.safe_load(job_spec)
pipeline_spec = job_spec.get("pipelineSpec") or job_spec

# Construct expected request
Expand Down Expand Up @@ -782,7 +782,7 @@ def test_submit_call_pipeline_service_pipeline_job_create_legacy(
runtime_config = gca_pipeline_job_v1.PipelineJob.RuntimeConfig()._pb
json_format.ParseDict(expected_runtime_config_dict, runtime_config)

job_spec = job_spec if isinstance(job_spec, dict) else yaml.safe_load(job_spec)
job_spec = yaml.safe_load(job_spec)
pipeline_spec = job_spec.get("pipelineSpec") or job_spec

# Construct expected request
Expand Down

0 comments on commit 3914dd0

Please sign in to comment.