MCPcopy Create free account
hub / github.com/PyMySQL/mysqlclient / test_mogrify_with_tuple_args

Function test_mogrify_with_tuple_args

tests/test_cursor.py:167–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165
166
167def test_mogrify_with_tuple_args():
168 conn = connect()
169 cursor = conn.cursor()
170
171 query_with_args = "SELECT %s, %s", (1, 2)
172 mogrified_query = cursor.mogrify(*query_with_args)
173 cursor.execute(*query_with_args)
174
175 assert mogrified_query == "SELECT 1, 2"
176 assert mogrified_query == cursor._executed.decode()
177
178
179def test_mogrify_with_dict_args():

Callers

nothing calls this directly

Calls 4

cursorMethod · 0.80
mogrifyMethod · 0.80
executeMethod · 0.80
connectFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…