diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2021-12-24 19:54:09 +0100 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2021-12-24 19:54:09 +0100 |
| commit | c7d7e516528c9cef0caa8f5957d1b7c5a4dabd04 (patch) | |
| tree | 23a7f7684579fa668745a6431bc9d9657c4cbed4 /test_pytest/conftest.py | |
| parent | 2c3bacd1ed7f68e407766d96fa3da72b08674d21 (diff) | |
requirements update
Diffstat (limited to 'test_pytest/conftest.py')
| -rw-r--r-- | test_pytest/conftest.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test_pytest/conftest.py b/test_pytest/conftest.py index 39370af..866d3ce 100644 --- a/test_pytest/conftest.py +++ b/test_pytest/conftest.py @@ -1,16 +1,17 @@ -import asyncio - import pytest from hat import aio +loop = None + + @pytest.fixture(scope='session') def event_loop(): - loop = asyncio.get_event_loop() yield loop loop.close() def pytest_configure(config): - aio.init_asyncio() + global loop + loop = aio.init_asyncio() |
