Skip to content

Commit

Permalink
chore: migrate default branch from master to main (#153)
Browse files Browse the repository at this point in the history
* 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 <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
2 people authored and dizcology committed Jul 20, 2023
1 parent 10221ef commit 84b5217
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bigquery-reservation/snippets/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 84b5217

Please sign in to comment.