Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
πŸ› FIX: fix failing pre-commit checks
Browse files Browse the repository at this point in the history
  • Loading branch information
japerry911 committed Mar 1, 2024
1 parent 6116c42 commit a459a7a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/test_cloud_run_worker_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def job_body():
"template": {
"maxRetries": None,
"timeout": None,
"vpcAccess": "projects/my_project/locations/us-central1/connectors/my-connector",
"vpcAccess": "projects/my_project/locations/us-central1/connectors/my-connector", # noqa: E501
"containers": [
{
"env": [],
Expand Down Expand Up @@ -125,6 +125,9 @@ def test_format_args_if_present(self, cloud_run_worker_v2_job_config):
def test_populate_vpc_if_present(self, cloud_run_worker_v2_job_config):
cloud_run_worker_v2_job_config._populate_vpc_if_present()

assert cloud_run_worker_v2_job_config.job_body["template"]["template"][
"vpcAccess"
]["connector"] == "projects/my_project/locations/us-central1/connectors/my-connector"
assert (
cloud_run_worker_v2_job_config.job_body["template"]["template"][
"vpcAccess"
]["connector"]
== "projects/my_project/locations/us-central1/connectors/my-connector"
)

0 comments on commit a459a7a

Please sign in to comment.