示例#1
0
async def test_pool_by_params(event_loop):
    pool = AsyncPool("pg", params=PARAMS, loop=event_loop)
    assert pool.get_dsn() == asyncpg_url
示例#2
0
async def test_pool_by_params(event_loop):
    pool = AsyncPool(DRIVER, params=params, loop=event_loop)
    assert pool.get_dsn() == redis_url