(self, retval)
| 3768 | ) |
| 3769 | |
| 3770 | def _test_cursor_execute(self, retval): |
| 3771 | with self._run_test(retval) as (conn, m1): |
| 3772 | dialect = conn.dialect |
| 3773 | |
| 3774 | stmt = "insert into table foo" |
| 3775 | params = {"foo": "bar"} |
| 3776 | ctx = dialect.execution_ctx_cls._init_statement( |
| 3777 | dialect, |
| 3778 | conn, |
| 3779 | conn.connection, |
| 3780 | {}, |
| 3781 | stmt, |
| 3782 | [params], |
| 3783 | ) |
| 3784 | |
| 3785 | conn._cursor_execute(ctx.cursor, stmt, params, ctx) |
| 3786 | |
| 3787 | self._assert( |
| 3788 | retval, |
| 3789 | m1.do_execute, |
| 3790 | m1.real_do_execute, |
| 3791 | [call(ctx.cursor, "insert into table foo", {"foo": "bar"}, ctx)], |
| 3792 | ) |
| 3793 | |
| 3794 | def test_do_execute_w_replace(self): |
| 3795 | self._test_do_execute(True) |
no test coverage detected