MCPcopy
hub / github.com/psycopg/psycopg / test_query_params_executemany

Function test_query_params_executemany

tests/test_cursor_raw_async.py:63–68  ·  view source on GitHub ↗
(aconn)

Source from the content-addressed store, hash-verified

61
62
63async def test_query_params_executemany(aconn):
64 cur = aconn.cursor()
65
66 await cur.executemany("select $1, $2", [[1, 2], [3, 4]])
67 assert cur._query.query == b"select $1, $2"
68 assert cur._query.params == [b"\x00\x03", b"\x00\x04"]
69
70
71@pytest.mark.slow

Callers

nothing calls this directly

Calls 2

cursorMethod · 0.45
executemanyMethod · 0.45

Tested by

no test coverage detected