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

Method test_pool_12

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

Source from the content-addressed store, hash-verified

288 await pool.close()
289
290 async def test_pool_12(self):
291 pool = await self.create_pool(database='postgres',
292 min_size=1, max_size=1)
293
294 async with pool.acquire() as con:
295 self.assertTrue(isinstance(con, pg_connection.Connection))
296 self.assertFalse(isinstance(con, list))
297
298 await pool.close()
299
300 async def test_pool_13(self):
301 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