From acf78575a30219103f72af846ba7a0494c69cf77 Mon Sep 17 00:00:00 2001 From: KonstantAnxiety Date: Thu, 12 Oct 2023 12:41:46 +0300 Subject: [PATCH] Move pytest_plugins to the top level in dl_core tests to fix unit tests --- lib/dl_core/dl_core_tests/conftest.py | 1 + lib/dl_core/dl_core_tests/unit/conftest.py | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) create mode 100644 lib/dl_core/dl_core_tests/conftest.py diff --git a/lib/dl_core/dl_core_tests/conftest.py b/lib/dl_core/dl_core_tests/conftest.py new file mode 100644 index 000000000..24e2d3dac --- /dev/null +++ b/lib/dl_core/dl_core_tests/conftest.py @@ -0,0 +1 @@ +pytest_plugins = ("aiohttp.pytest_plugin",) # and it, in turn, includes 'pytest_asyncio.plugin' diff --git a/lib/dl_core/dl_core_tests/unit/conftest.py b/lib/dl_core/dl_core_tests/unit/conftest.py index 5a48d8dc7..73a14a096 100644 --- a/lib/dl_core/dl_core_tests/unit/conftest.py +++ b/lib/dl_core/dl_core_tests/unit/conftest.py @@ -3,9 +3,6 @@ import pytest -pytest_plugins = ("aiohttp.pytest_plugin",) # and it, in turn, includes 'pytest_asyncio.plugin' - - @pytest.fixture def loop(event_loop): asyncio.set_event_loop(event_loop)