MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_detach

Method test_detach

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

Source from the content-addressed store, hash-verified

558 eq_(canary.mock_calls, [call(connection, rec)])
559
560 def test_detach(self):
561 p, canary = self._detach_event_fixture()
562
563 c1 = p.connect()
564
565 connection = c1.dbapi_connection
566 rec = c1._connection_record
567
568 c1.detach()
569
570 eq_(canary.mock_calls, [call(connection, rec)])
571
572 def test_detach_close(self):
573 p, canary = self._close_detached_event_fixture()

Callers

nothing calls this directly

Calls 5

_detach_event_fixtureMethod · 0.95
eq_Function · 0.90
callFunction · 0.85
connectMethod · 0.45
detachMethod · 0.45

Tested by

no test coverage detected