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

Method create_pool

tests/test_pool.py:1650–1653  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

1648@unittest.skipIf(os.environ.get('PGHOST'), 'using remote cluster for testing')
1649class TestHotStandby(tb.HotStandbyTestCase):
1650 def create_pool(self, **kwargs):
1651 conn_spec = self.standby_cluster.get_connection_spec()
1652 conn_spec.update(kwargs)
1653 return pg_pool.create_pool(loop=self.loop, **conn_spec)
1654
1655 async def test_standby_pool_01(self):
1656 for n in {1, 3, 5, 10, 20, 100}:

Callers 15

test_standby_pool_01Method · 0.95
test_listen_01Method · 0.45
test_listen_02Method · 0.45
test_pool_01Method · 0.45
test_pool_02Method · 0.45
test_pool_03Method · 0.45
test_pool_04Method · 0.45

Calls 1

get_connection_specMethod · 0.45

Tested by

no test coverage detected