Avoid detecting conftest files upwards from setup.cfg/pytest.ini/tox.ini files by default

As discussed in #82
This commit is contained in:
Bruno Oliveira
2015-07-23 21:48:59 -03:00
parent df29120abe
commit ab9e246ab0
4 changed files with 55 additions and 0 deletions

View File

@@ -219,3 +219,10 @@ Builtin configuration file options
One or more doctest flag names from the standard ``doctest`` module.
:doc:`See how py.test handles doctests <doctest>`.
.. confval:: confcutdir
Sets a directory where search upwards for ``conftest.py`` files stops.
By default, pytest will stop searching for ``conftest.py`` files upwards
from ``pytest.ini``/``tox.ini``/``setup.cfg`` of the project if any,
or up to the file-system root.