MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_no_double_checkin

Method test_no_double_checkin

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

Source from the content-addressed store, hash-verified

1957 eq_(c2_con.close.call_count, 0)
1958
1959 def test_no_double_checkin(self):
1960 p = self._queuepool_fixture(pool_size=1)
1961
1962 c1 = p.connect()
1963 rec = c1._connection_record
1964 c1.close()
1965 assert_warns_message(
1966 Warning, "Double checkin attempted on %s" % rec, rec.checkin
1967 )
1968
1969 def test_lifo(self):
1970 c1, c2, c3 = Mock(), Mock(), Mock()

Callers

nothing calls this directly

Calls 4

assert_warns_messageFunction · 0.90
_queuepool_fixtureMethod · 0.80
connectMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected