MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_recreate

Method test_recreate

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

Source from the content-addressed store, hash-verified

1901 assert c1.dbapi_connection.id != c_id
1902
1903 def test_recreate(self):
1904 p = self._queuepool_fixture(
1905 reset_on_return=None, pool_size=1, max_overflow=0
1906 )
1907 p2 = p.recreate()
1908 assert p2.size() == 1
1909 assert p2._reset_on_return is pool.reset_none
1910 assert p2._max_overflow == 0
1911
1912 def test_reconnect(self):
1913 """tests reconnect operations at the pool level. SA's

Callers

nothing calls this directly

Calls 3

_queuepool_fixtureMethod · 0.80
sizeMethod · 0.80
recreateMethod · 0.45

Tested by

no test coverage detected