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

Method test_close

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected