MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_detach_close

Method test_detach_close

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 6

eq_Function · 0.90
callFunction · 0.85
connectMethod · 0.45
detachMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected