MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _connect_event_fixture

Method _connect_event_fixture

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

Source from the content-addressed store, hash-verified

448 return p, canary
449
450 def _connect_event_fixture(self):
451 p = self._queuepool_fixture()
452 canary = []
453
454 def connect(*arg, **kw):
455 canary.append("connect")
456
457 event.listen(p, "connect", connect)
458
459 return p, canary
460
461 def _checkout_event_fixture(self):
462 p = self._queuepool_fixture()

Calls 2

_queuepool_fixtureMethod · 0.80
listenMethod · 0.45

Tested by

no test coverage detected