MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_close

Method test_close

test/engine/test_pool.py:545–558  ·  test/engine/test_pool.py::PoolEventsTest.test_close
(self)

Source from the content-addressed store, hash-verified

543 return p, canary
544
545 def test_close(self):
546 p, canary = self._close_event_fixture()
547
548 c1 = p.connect()
549
550 connection = c1.dbapi_connection
551 rec = c1._connection_record
552
553 c1.close()
554
555 eq_(canary.mock_calls, [])
556
557 p.dispose()
558 eq_(canary.mock_calls, [call(connection, rec)])
559
560 def test_detach(self):
561 p, canary = self._detach_event_fixture()

Callers

nothing calls this directly

Calls 6

_close_event_fixtureMethod · 0.95
eq_Function · 0.90
callFunction · 0.85
connectMethod · 0.45
closeMethod · 0.45
disposeMethod · 0.45

Tested by

no test coverage detected