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

Function test_mogrify_without_args

tests/test_cursor.py:155–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

153
154
155def test_mogrify_without_args():
156 conn = connect()
157 cursor = conn.cursor()
158
159 query = "SELECT VERSION()"
160 mogrified_query = cursor.mogrify(query)
161 cursor.execute(query)
162
163 assert mogrified_query == query
164 assert mogrified_query == cursor._executed.decode()
165
166
167def test_mogrify_with_tuple_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…