()
| 153 | |
| 154 | |
| 155 | def 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 | |
| 167 | def test_mogrify_with_tuple_args(): |