MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _first_connect_event_fixture

Method _first_connect_event_fixture

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

Source from the content-addressed store, hash-verified

437
438class PoolEventsTest(PoolTestBase):
439 def _first_connect_event_fixture(self):
440 p = self._queuepool_fixture()
441 canary = []
442
443 def first_connect(*arg, **kw):
444 canary.append("first_connect")
445
446 event.listen(p, "first_connect", first_connect)
447
448 return p, canary
449
450 def _connect_event_fixture(self):
451 p = self._queuepool_fixture()

Calls 2

_queuepool_fixtureMethod · 0.80
listenMethod · 0.45

Tested by

no test coverage detected