MCPcopy
hub / github.com/MagicStack/asyncpg / create_pool

Method create_pool

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

Source from the content-addressed store, hash-verified

1072@unittest.skipIf(os.environ.get('PGHOST'), 'using remote cluster for testing')
1073class TestHotStandby(tb.HotStandbyTestCase):
1074 def create_pool(self, **kwargs):
1075 conn_spec = self.standby_cluster.get_connection_spec()
1076 conn_spec.update(kwargs)
1077 return pg_pool.create_pool(loop=self.loop, **conn_spec)
1078
1079 async def test_standby_pool_01(self):
1080 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