Skip to content

Commit 4116a4b

Browse files
[MegaLinter] Apply linters fixes
1 parent 9a63c84 commit 4116a4b

File tree

2 files changed

+6
-18
lines changed

2 files changed

+6
-18
lines changed

tests/datastore_mysqldb/test_alias.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,24 +88,18 @@ def _exercise_db(connection, table_name):
8888
with connection.cursor() as cursor:
8989
cursor.execute(f"""drop table if exists `{table_name}`""")
9090

91-
cursor.execute(
92-
f"""create table `{table_name}` (a integer, b real, c text)"""
93-
)
91+
cursor.execute(f"""create table `{table_name}` (a integer, b real, c text)""")
9492

9593
cursor.executemany(
96-
f"insert into `{table_name}` values (%s, %s, %s)",
97-
[(1, 1.0, "1.0"), (2, 2.2, "2.2"), (3, 3.3, "3.3")],
94+
f"insert into `{table_name}` values (%s, %s, %s)", [(1, 1.0, "1.0"), (2, 2.2, "2.2"), (3, 3.3, "3.3")]
9895
)
9996

10097
cursor.execute(f"""select * from {table_name}""")
10198

10299
for _ in cursor:
103100
pass
104101

105-
cursor.execute(
106-
f"update `{table_name}` set a=%s, b=%s, c=%s where a=%s",
107-
(4, 4.0, "4.0", 1),
108-
)
102+
cursor.execute(f"update `{table_name}` set a=%s, b=%s, c=%s where a=%s", (4, 4.0, "4.0", 1))
109103

110104
cursor.execute(f"""delete from `{table_name}` where a=2""")
111105

tests/datastore_mysqldb/test_cursor.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,24 +88,18 @@ def _exercise_db(connection, table_name):
8888
with connection.cursor() as cursor:
8989
cursor.execute(f"""drop table if exists `{table_name}`""")
9090

91-
cursor.execute(
92-
f"""create table `{table_name}` (a integer, b real, c text)"""
93-
)
91+
cursor.execute(f"""create table `{table_name}` (a integer, b real, c text)""")
9492

9593
cursor.executemany(
96-
f"insert into `{table_name}` values (%s, %s, %s)",
97-
[(1, 1.0, "1.0"), (2, 2.2, "2.2"), (3, 3.3, "3.3")],
94+
f"insert into `{table_name}` values (%s, %s, %s)", [(1, 1.0, "1.0"), (2, 2.2, "2.2"), (3, 3.3, "3.3")]
9895
)
9996

10097
cursor.execute(f"""select * from {table_name}""")
10198

10299
for _ in cursor:
103100
pass
104101

105-
cursor.execute(
106-
f"update `{table_name}` set a=%s, b=%s, c=%s where a=%s",
107-
(4, 4.0, "4.0", 1),
108-
)
102+
cursor.execute(f"update `{table_name}` set a=%s, b=%s, c=%s where a=%s", (4, 4.0, "4.0", 1))
109103

110104
cursor.execute(f"""delete from `{table_name}` where a=2""")
111105

0 commit comments

Comments
 (0)