Skip to content

[9.16] Configure pytest to properly locate conftest.py

Tom Krizek requested to merge tkrizek/pytest-conftest-9.16 into bind-9.16

In pytest 7.4.0, there were some changes to how the configuration file for pytest is located. In our case, this resulted in a failure to find the conftest.py with the needed fixtures which then prevented our python tests from being executed successfully.

Configure the --confcutdir to ensure it points to the system test directory, where our conftest.py is located.

Related https://github.com/pytest-dev/pytest/pull/11043


Validation pipeline: https://gitlab.isc.org/isc-projects/bind9/-/pipelines/143225

Edited by Tom Krizek

Merge request reports