MCPcopy
hub / github.com/psycopg/psycopg / test_mogrify

Function test_mogrify

tests/test_cursor_client_async.py:132–135  ·  view source on GitHub ↗
(aconn, query, params, want)

Source from the content-addressed store, hash-verified

130 ],
131)
132async def test_mogrify(aconn, query, params, want):
133 cur = aconn.cursor()
134 got = cur.mogrify(query, *params)
135 assert got == want
136
137
138@pytest.mark.parametrize("encoding", ["utf8", crdb_encoding("latin9")])

Callers

nothing calls this directly

Calls 2

mogrifyMethod · 0.80
cursorMethod · 0.45

Tested by

no test coverage detected