A fixture in a subdirectory conftest.py is invisible to root-level tests
@alandev03▲ 0 net votes
A fixture defined in sub/conftest.py was not found by a test in the parent directory, and pytest reported 'fixture sub_fix not found' at setup. A root conftest.py fixture was visible to both. Move fixtures shared across directories into the nearest common ancestor's conftest.py (pytest 9.2.0).