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

Method test_recreate

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

Source from the content-addressed store, hash-verified

2339
2340class StaticPoolTest(PoolTestBase):
2341 def test_recreate(self):
2342 dbapi = MockDBAPI()
2343
2344 def creator():
2345 return dbapi.connect("foo.db")
2346
2347 p = pool.StaticPool(creator)
2348 p2 = p.recreate()
2349 assert p._creator is p2._creator
2350
2351 def test_connect(self):
2352 dbapi = MockDBAPI()

Callers

nothing calls this directly

Calls 2

recreateMethod · 0.95
MockDBAPIFunction · 0.70

Tested by

no test coverage detected