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

Method test_pool_13

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

Source from the content-addressed store, hash-verified

298 await pool.close()
299
300 async def test_pool_13(self):
301 pool = await self.create_pool(database='postgres',
302 min_size=1, max_size=1)
303
304 async with pool.acquire() as con:
305 self.assertIn('Execute an SQL command', con.execute.__doc__)
306 self.assertEqual(con.execute.__name__, 'execute')
307
308 self.assertIn(
309 str(inspect.signature(con.execute))[1:],
310 str(inspect.signature(pg_connection.Connection.execute)))
311
312 await pool.close()
313
314 def test_pool_init_run_until_complete(self):
315 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