MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_detach_close

Method test_detach_close

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

Source from the content-addressed store, hash-verified

572 eq_(canary.mock_calls, [call(connection, rec)])
573
574 def test_detach_close(self):
575 p, canary = self._close_detached_event_fixture()
576
577 c1 = p.connect()
578
579 connection = c1.dbapi_connection
580
581 c1.detach()
582
583 c1.close()
584 eq_(canary.mock_calls, [call(connection)])
585
586 def test_first_connect_event(self):
587 p, canary = self._first_connect_event_fixture()

Callers

nothing calls this directly

Calls 5

eq_Function · 0.90
connectMethod · 0.45
detachMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected