()
| 165 | |
| 166 | |
| 167 | def 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 | |
| 179 | def test_mogrify_with_dict_args(): |