From e042f6024d3fe5df496e0f674d83874b259c995e Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Tue, 18 Oct 2022 08:53:53 +0200 Subject: [PATCH] Move conftest to top-level This fixes the following error: ________________________ ERROR collecting test session _________________________ Defining 'pytest_plugins' in a non-top-level conftest is no longer supported: It affects the entire test suite instead of just below the conftest as expected. /build/pytest-harvest-1.10.4/pytest_harvest/conftest.py Please move it to a top level conftest file at the rootdir: /build/pytest-harvest-1.10.4 For more information, visit: https://docs.pytest.org/en/stable/deprecations.html#pytest-plugins-in-non-top-level-conftest-files --- pytest_harvest/tests/conftest.py => conftest.py | 0 pytest_harvest/tests_raw/conftest.py | 2 -- 2 files changed, 2 deletions(-) rename pytest_harvest/tests/conftest.py => conftest.py (100%) delete mode 100644 pytest_harvest/tests_raw/conftest.py diff --git a/pytest_harvest/tests/conftest.py b/conftest.py similarity index 100% rename from pytest_harvest/tests/conftest.py rename to conftest.py diff --git a/pytest_harvest/tests_raw/conftest.py b/pytest_harvest/tests_raw/conftest.py deleted file mode 100644 index 2467cce..0000000 --- a/pytest_harvest/tests_raw/conftest.py +++ /dev/null @@ -1,2 +0,0 @@ -# This is actually not even needed apparently -# pytest_plugins = ["harvest"] \ No newline at end of file