Skip to content

Commit dad6711

Browse files
plamutgcf-owl-bot[bot]
authored andcommitted
chore: migrate default branch from master to main (#153)
* 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>
1 parent 0a19f47 commit dad6711

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

bigquery-reservation/snippets/conftest.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,17 @@ def location_path(project_id: str, location: str) -> str:
4444

4545

4646
@pytest.fixture(scope="session", autouse=True)
47-
def capacity_commitment(location_path: str, reservation_client: reservation_service.ReservationServiceClient) -> reservation_types.CapacityCommitment:
47+
def capacity_commitment(
48+
location_path: str, reservation_client: reservation_service.ReservationServiceClient
49+
) -> reservation_types.CapacityCommitment:
4850
# TODO(b/196082966): If custom names or creation date property are added,
4951
# do pre-test cleanup of past commitments.
5052
commitment = reservation_types.CapacityCommitment()
5153
commitment.slot_count = 100
5254
commitment.plan = reservation_types.CapacityCommitment.CommitmentPlan.FLEX
53-
commitment = reservation_client.create_capacity_commitment(parent=location_path, capacity_commitment=commitment)
55+
commitment = reservation_client.create_capacity_commitment(
56+
parent=location_path, capacity_commitment=commitment
57+
)
5458
yield commitment
5559
# Commitments can only be removed after 1 minute.
5660
now = datetime.datetime.now(datetime.timezone.utc)

0 commit comments

Comments
 (0)