@pytest.fixture(scope='session')
def loop(request):
    loop_ = asyncio.get_event_loop()
    asyncio.set_event_loop(loop_)
    return loop_
Create and provide asyncio loop.
dataset/ETHPy150Open klen/muffin/muffin/pytest.py/loop