Skip to content

Commit b6ea9d1

Browse files
committed
attempt to fix tests
1 parent 3624163 commit b6ea9d1

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

tests/integration/dbapi/async/V2/test_queries_async.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,16 +265,16 @@ async def test_empty_query(c: Cursor, query: str, params: tuple) -> None:
265265
async def test_parameterized_query_with_special_chars(connection: Connection) -> None:
266266
"""Query parameters are handled properly."""
267267
async with connection.cursor() as c:
268-
params = ["text with 'quote'", "text with \\slashes"]
268+
parameters = ["text with 'quote'", "text with \\slashes"]
269269

270270
await c.execute(
271271
"SELECT ? as one, ? as two",
272-
params,
272+
parameters,
273273
)
274274

275275
result = await c.fetchall()
276276
assert result == [
277-
[params[0], params[1]]
277+
[parameters[0], parameters[1]]
278278
], "Invalid data in table after parameterized insert"
279279

280280

tests/integration/dbapi/sync/V2/test_queries.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
VALS_TO_INSERT = ",".join([f"({i},'{val}')" for (i, val) in enumerate(range(1, 360))])
1818
LONG_INSERT = f"INSERT INTO test_tbl VALUES {VALS_TO_INSERT}"
1919
LONG_SELECT = (
20-
"SELECT checksum(*) FROM GENERATE_SERIES(1, 400000000000)" # approx 6m runtime
20+
"SELECT checksum(*) FROM GENERATE_SERIES(1, 350000000000)" # approx 6m runtime
2121
)
2222

2323

@@ -214,16 +214,16 @@ def test_empty_query(c: Cursor, query: str) -> None:
214214
def test_parameterized_query_with_special_chars(connection: Connection) -> None:
215215
"""Query parameters are handled properly."""
216216
with connection.cursor() as c:
217-
params = ["text with 'quote'", "text with \\slashes"]
217+
parameters = ["text with 'quote'", "text with \\slashes"]
218218

219219
c.execute(
220220
"SELECT ? as one, ? as two",
221-
params,
221+
parameters,
222222
)
223223

224224
result = c.fetchall()
225225
assert result == [
226-
[params[0], params[1]]
226+
[parameters[0], parameters[1]]
227227
], "Invalid data in table after parameterized insert"
228228

229229

0 commit comments

Comments
 (0)