@@ -66,6 +66,7 @@ class BenchmarkTestBase:
66
66
67
67
Organizes testing data preparation and cleanup.
68
68
"""
69
+
69
70
_many_rows_ids = []
70
71
_many_rows2_ids = []
71
72
@@ -86,7 +87,6 @@ def __init__(self):
86
87
self ._many_rows_ids .append (self ._generate_id ())
87
88
self ._many_rows2_ids .append (self ._generate_id ())
88
89
89
-
90
90
def _cleanup (self ):
91
91
"""Drop the test table."""
92
92
conn = spanner_dbapi .connect (INSTANCE , DATABASE )
@@ -297,7 +297,7 @@ def insert_one_row(transaction, one_row):
297
297
"last_name" : spanner .param_types .STRING ,
298
298
"birth_date" : spanner .param_types .DATE ,
299
299
"picture" : spanner .param_types .BYTES ,
300
- }
300
+ },
301
301
)
302
302
last_name = transaction .execute_sql (
303
303
"SELECT last_name FROM Singers WHERE id=1"
@@ -315,16 +315,16 @@ def insert_many_rows(transaction, many_rows):
315
315
for row in many_rows :
316
316
statements .append (
317
317
(
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)" ,
320
320
row ,
321
321
{
322
322
"id" : spanner .param_types .INT64 ,
323
323
"first_name" : spanner .param_types .STRING ,
324
324
"last_name" : spanner .param_types .STRING ,
325
325
"birth_date" : spanner .param_types .DATE ,
326
326
"picture" : spanner .param_types .BYTES ,
327
- }
327
+ },
328
328
)
329
329
)
330
330
_ , count = transaction .batch_update (statements )
0 commit comments