smarie / python-pytest-steps

A tiny package to ease the creation of test steps with shared intermediate results/state.
https://smarie.github.io/python-pytest-steps/
BSD 3-Clause "New" or "Revised" License
56 stars 5 forks source link

Move conftest to top-level #54

Open jtojnar opened 1 year ago

jtojnar commented 1 year ago

Same as https://github.com/smarie/python-pytest-harvest/pull/62

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-steps-1.8.0/pytest_steps/conftest.py
Please move it to a top level conftest file at the rootdir:
  /build/pytest-steps-1.8.0
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