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

Method test_pool_12

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

Source from the content-addressed store, hash-verified

306 await pool.close()
307
308 async def test_pool_12(self):
309 pool = await self.create_pool(database='postgres',
310 init_size=1, min_size=1, max_size=1)
311
312 async with pool.acquire() as con:
313 self.assertTrue(isinstance(con, pg_connection.Connection))
314 self.assertFalse(isinstance(con, list))
315
316 await pool.close()
317
318 async def test_pool_13(self):
319 pool = await self.create_pool(database='postgres',

Callers

nothing calls this directly

Calls 3

create_poolMethod · 0.45
acquireMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected