MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / test_pool_06

Method test_pool_06

tests/test_pool.py:141–153  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

139 await pool.close()
140
141 async def test_pool_06(self):
142 fut = asyncio.Future()
143
144 async def setup(con):
145 fut.set_result(con)
146
147 async with self.create_pool(database='postgres',
148 init_size=5, min_size=1, max_size=5,
149 setup=setup) as pool:
150 async with pool.acquire() as con:
151 pass
152
153 self.assertIs(con, await fut)
154
155 async def test_pool_07(self):
156 cons = set()

Callers

nothing calls this directly

Calls 2

create_poolMethod · 0.45
acquireMethod · 0.45

Tested by

no test coverage detected