From 1e874e790c12839695761a654b44fb427149a353 Mon Sep 17 00:00:00 2001 From: "bozo.kopic" Date: Wed, 28 Jul 2021 01:43:55 +0200 Subject: init --- 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