(dialect, context)
| 505 | yield batch |
| 506 | |
| 507 | def _exec_insertmany_context(dialect, context): |
| 508 | with mock.patch.object( |
| 509 | dialect, |
| 510 | "_deliver_insertmanyvalues_batches", |
| 511 | new=_deliver_insertmanyvalues_batches, |
| 512 | ): |
| 513 | return orig_conn(dialect, context) |
| 514 | |
| 515 | connection._exec_insertmany_context = _exec_insertmany_context |
| 516 |