Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d125c53

Browse filesBrowse files
committed
style: fix lint
1 parent 23ba44e commit d125c53
Copy full SHA for d125c53

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed

‎test/benchmark.py

Copy file name to clipboardExpand all lines: test/benchmark.py
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class BenchmarkTestBase:
6666
6767
Organizes testing data preparation and cleanup.
6868
"""
69+
6970
_many_rows_ids = []
7071
_many_rows2_ids = []
7172

@@ -86,7 +87,6 @@ def __init__(self):
8687
self._many_rows_ids.append(self._generate_id())
8788
self._many_rows2_ids.append(self._generate_id())
8889

89-
9090
def _cleanup(self):
9191
"""Drop the test table."""
9292
conn = spanner_dbapi.connect(INSTANCE, DATABASE)
@@ -297,7 +297,7 @@ def insert_one_row(transaction, one_row):
297297
"last_name": spanner.param_types.STRING,
298298
"birth_date": spanner.param_types.DATE,
299299
"picture": spanner.param_types.BYTES,
300-
}
300+
},
301301
)
302302
last_name = transaction.execute_sql(
303303
"SELECT last_name FROM Singers WHERE id=1"
@@ -315,16 +315,16 @@ def insert_many_rows(transaction, many_rows):
315315
for row in many_rows:
316316
statements.append(
317317
(
318-
"INSERT INTO `Singers` (id, first_name, last_name, birth_date, picture) "
319-
"VALUES (@id, @first_name, @last_name, @birth_date, @picture)",
318+
"INSERT INTO `Singers` (id, first_name, last_name, birth_date, picture)"
319+
" VALUES (@id, @first_name, @last_name, @birth_date, @picture)",
320320
row,
321321
{
322322
"id": spanner.param_types.INT64,
323323
"first_name": spanner.param_types.STRING,
324324
"last_name": spanner.param_types.STRING,
325325
"birth_date": spanner.param_types.DATE,
326326
"picture": spanner.param_types.BYTES,
327-
}
327+
},
328328
)
329329
)
330330
_, count = transaction.batch_update(statements)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.