MCPcopy Create free account
hub / github.com/python-arq/arq / fix_create_pool

Function fix_create_pool

tests/conftest.py:133–143  ·  view source on GitHub ↗
(loop)

Source from the content-addressed store, hash-verified

131
132@pytest.fixture(name='create_pool')
133async def fix_create_pool(loop):
134 pools = []
135
136 async def create_pool_(settings, *args, **kwargs):
137 pool = await create_pool(settings, *args, **kwargs)
138 pools.append(pool)
139 return pool
140
141 yield create_pool_
142
143 await asyncio.gather(*[p.close(close_connection_pool=True) for p in pools])
144
145
146@pytest.fixture(name='cancel_remaining_task')

Callers

nothing calls this directly

Calls 1

closeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…