MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _checkout_event_fixture

Method _checkout_event_fixture

test/engine/test_pool.py:461–470  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

459 return p, canary
460
461 def _checkout_event_fixture(self):
462 p = self._queuepool_fixture()
463 canary = []
464
465 def checkout(*arg, **kw):
466 canary.append("checkout")
467
468 event.listen(p, "checkout", checkout)
469
470 return p, canary
471
472 def _checkin_event_fixture(self, _is_asyncio=False, _has_terminate=False):
473 p = self._queuepool_fixture(

Calls 2

_queuepool_fixtureMethod · 0.80
listenMethod · 0.45

Tested by

no test coverage detected