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

Method test_pool_13

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

Source from the content-addressed store, hash-verified

316 await pool.close()
317
318 async def test_pool_13(self):
319 pool = await self.create_pool(database='postgres',
320 init_size=1, min_size=1, max_size=1)
321
322 async with pool.acquire() as con:
323 self.assertIn('Execute an SQL command', con.execute.__doc__)
324 self.assertEqual(con.execute.__name__, 'execute')
325
326 self.assertIn(
327 str(inspect.signature(con.execute))[1:],
328 str(inspect.signature(pg_connection.Connection.execute)))
329
330 await pool.close()
331
332 def test_pool_init_run_until_complete(self):
333 pool_init = 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