smarie / python-pytest-harvest

Store data created during your `pytest` tests execution, and retrieve it at the end of the session, e.g. for applicative benchmarking purposes.
https://smarie.github.io/python-pytest-harvest/
BSD 3-Clause "New" or "Revised" License
61 stars 8 forks source link

Move conftest to top-level #62

Open jtojnar opened 1 year ago

jtojnar commented 1 year ago

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
smarie commented 1 year ago

Thanks @jtojnar !

Closing/Reopening PR to see the result of the CI