diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2021-07-28 01:43:55 +0200 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2021-07-29 00:01:57 +0200 |
| commit | 1e874e790c12839695761a654b44fb427149a353 (patch) | |
| tree | 6942441ac511ec1417b2434b111101fa8d7f7e68 /test_pytest/conftest.py | |
init
Diffstat (limited to 'test_pytest/conftest.py')
| -rw-r--r-- | test_pytest/conftest.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test_pytest/conftest.py b/test_pytest/conftest.py new file mode 100644 index 0000000..39370af --- /dev/null +++ b/test_pytest/conftest.py @@ -0,0 +1,16 @@ +import asyncio + +import pytest + +from hat import aio + + +@pytest.fixture(scope='session') +def event_loop(): + loop = asyncio.get_event_loop() + yield loop + loop.close() + + +def pytest_configure(config): + aio.init_asyncio() |
