I found plenty of issues in pytest(example), but not the exact reason for the change in the behavior in pytest 7.4.X (or python 3.11).
Fixtures used in the tests are defined in the conftest.py file in /usr/share/lib/img_proof/tests, but for some reason pytest is not setting the rootdir to that directory but to /usr/share/lib/img_proof/tests/SLES, and the conftest.py in the parent directory does not get loaded.
Including an empty pytest.ini in the root test directory is enough for the algorithm to find the rootdir to be found properly.
I found plenty of issues in pytest(example), but not the exact reason for the change in the behavior in pytest
7.4.X
(or python 3.11).Fixtures used in the tests are defined in the
conftest.py
file in/usr/share/lib/img_proof/tests
, but for some reason pytest is not setting the rootdir to that directory but to/usr/share/lib/img_proof/tests/SLES
, and theconftest.py
in the parent directory does not get loaded.Including an empty
pytest.ini
in the root test directory is enough for the algorithm to find the rootdir to be found properly.Before the file is present:
After the file is present: