aboutsummaryrefslogtreecommitdiff
path: root/test_pytest/conftest.py
blob: 866d3cef28c2b11c6b8e18961e32735e718ec1c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import pytest

from hat import aio


loop = None


@pytest.fixture(scope='session')
def event_loop():
    yield loop
    loop.close()


def pytest_configure(config):
    global loop
    loop = aio.init_asyncio()