(self, retval)
| 4059 | ) |
| 4060 | |
| 4061 | def _test_cursor_execute(self, retval): |
| 4062 | with self._run_test(retval) as (conn, m1): |
| 4063 | dialect = conn.dialect |
| 4064 | |
| 4065 | stmt = "insert into table foo" |
| 4066 | params = {"foo": "bar"} |
| 4067 | ctx = dialect.execution_ctx_cls._init_statement( |
| 4068 | dialect, |
| 4069 | conn, |
| 4070 | conn.connection, |
| 4071 | {}, |
| 4072 | stmt, |
| 4073 | [params], |
| 4074 | ) |
| 4075 | |
| 4076 | conn._cursor_execute(ctx.cursor, stmt, params, ctx) |
| 4077 | |
| 4078 | self._assert( |
| 4079 | retval, |
| 4080 | m1.do_execute, |
| 4081 | m1.real_do_execute, |
| 4082 | [call(ctx.cursor, "insert into table foo", {"foo": "bar"}, ctx)], |
| 4083 | ) |
| 4084 | |
| 4085 | def test_do_execute_w_replace(self): |
| 4086 | self._test_do_execute(True) |
no test coverage detected