We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e7c42ae + 97f560d commit 9c2c5d9Copy full SHA for 9c2c5d9
doc/en/doctest.rst
@@ -206,7 +206,11 @@ It is possible to use fixtures using the ``getfixture`` helper:
206
>>> ...
207
>>>
208
209
-Also, :ref:`usefixtures` and :ref:`autouse` fixtures are supported
+Note that the fixture needs to be defined in a place visible by pytest, for example a `conftest.py`
210
+file or plugin; normal python files containing docstrings are not normally scanned for fixtures
211
+unless explicitly configured by :confval:`python_files`.
212
+
213
+Also, the :ref:`usefixtures <usefixtures>` mark and fixtures marked as :ref:`autouse <autouse>` are supported
214
when executing text doctest files.
215
216
0 commit comments