Skip to content

Commit e936535

Browse files
committed
fix lint
1 parent c7b142d commit e936535

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

packages/google-cloud-bigtable/tests/system/admin_overlay/test_system_async.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from typing import Tuple
1818

1919
import pytest
20+
from google.api_core import exceptions
2021
from google.cloud.environment_vars import BIGTABLE_EMULATOR
2122

2223
from google.cloud import bigtable_admin_v2 as admin_v2
@@ -39,7 +40,6 @@
3940
generate_unique_suffix,
4041
)
4142

42-
from google.api_core import exceptions
4343
if CrossSync.is_async:
4444
from google.api_core import operation_async as api_core_operation
4545
else:
@@ -176,7 +176,6 @@ async def create_instance(
176176
# replace with full instance object
177177
instances_to_delete[-1] = instance
178178

179-
180179
# Create a table within the instance
181180
create_table_request = admin_v2.CreateTableRequest(
182181
parent=instance_admin_client.instance_path(project_id, instance_id),
@@ -261,7 +260,9 @@ async def create_backup(
261260
)
262261

263262
# add to cleanup list before waiting for result, in case of timeout
264-
backups_to_delete.append(admin_v2.Backup(name=f"{cluster_name}/backups/{backup_id}"))
263+
backups_to_delete.append(
264+
admin_v2.Backup(name=f"{cluster_name}/backups/{backup_id}")
265+
)
265266

266267
backup = await operation.result()
267268

packages/google-cloud-bigtable/tests/system/data/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,9 @@ def authorized_view_id(
253253
if new_view_id:
254254
print(f"Deleting view: {new_path}")
255255
try:
256-
admin_client.table_admin_client.delete_authorized_view(name=new_path)
256+
admin_client.table_admin_client.delete_authorized_view(
257+
name=new_path
258+
)
257259
except exceptions.NotFound:
258260
print(f"View {new_view_id} not found, skipping deletion")
259261

packages/google-cloud-bigtable/tests/system/data/test_metrics_autogen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def test_mutate_row(self, table, temp_rows, handler, cluster_config):
213213
operation.zone
214214
== cluster_config[operation.cluster_id].location.split("/")[-1]
215215
)
216-
assert operation.duration_ns > 0 and operation.duration_ns < 1000000000.0
216+
assert operation.duration_ns > 0
217217
assert operation.first_response_latency_ns is None
218218
assert operation.flow_throttling_time_ns == 0
219219
attempt = handler.completed_attempts[0]

0 commit comments

Comments
 (0)