From 887badca1fbee986d2911bc3cac46672cb47ecfc Mon Sep 17 00:00:00 2001 From: Peter Lamut Date: Thu, 26 Aug 2021 17:25:12 +0200 Subject: [PATCH] chore: migrate default branch from master to main (#153) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: migrate default branch from master to main * Blacken owlbot.py * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- bigquery-reservation/snippets/conftest.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bigquery-reservation/snippets/conftest.py b/bigquery-reservation/snippets/conftest.py index 59db3c08c391..a35a9ab01888 100644 --- a/bigquery-reservation/snippets/conftest.py +++ b/bigquery-reservation/snippets/conftest.py @@ -44,13 +44,17 @@ def location_path(project_id: str, location: str) -> str: @pytest.fixture(scope="session", autouse=True) -def capacity_commitment(location_path: str, reservation_client: reservation_service.ReservationServiceClient) -> reservation_types.CapacityCommitment: +def capacity_commitment( + location_path: str, reservation_client: reservation_service.ReservationServiceClient +) -> reservation_types.CapacityCommitment: # TODO(b/196082966): If custom names or creation date property are added, # do pre-test cleanup of past commitments. commitment = reservation_types.CapacityCommitment() commitment.slot_count = 100 commitment.plan = reservation_types.CapacityCommitment.CommitmentPlan.FLEX - commitment = reservation_client.create_capacity_commitment(parent=location_path, capacity_commitment=commitment) + commitment = reservation_client.create_capacity_commitment( + parent=location_path, capacity_commitment=commitment + ) yield commitment # Commitments can only be removed after 1 minute. now = datetime.datetime.now(datetime.timezone.utc)