From 0702d13263bf501c1db074ce1544e60b95161210 Mon Sep 17 00:00:00 2001 From: "bozo.kopic" Date: Sun, 7 Nov 2021 15:52:44 +0100 Subject: major rewrite --- test_pytest/conftest.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test_pytest/conftest.py (limited to 'test_pytest/conftest.py') 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() -- cgit v1.2.3-70-g09d2