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

Method test_recreate

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

recreateMethod · 0.95
MockDBAPIFunction · 0.70

Tested by

no test coverage detected