File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
bigquery-reservation/snippets Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments