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

Method test_pool_init_run_until_complete

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

Source from the content-addressed store, hash-verified

312 await pool.close()
313
314 def test_pool_init_run_until_complete(self):
315 pool_init = self.create_pool(database='postgres')
316 pool = self.loop.run_until_complete(pool_init)
317 self.assertIsInstance(pool, asyncpg.pool.Pool)
318
319 async def test_pool_exception_in_setup_and_init(self):
320 class Error(Exception):

Callers

nothing calls this directly

Calls 1

create_poolMethod · 0.45

Tested by

no test coverage detected