Skip to content

Commit

Permalink
Clarify 'getfixture' needs to access fixtures by normal means
Browse files Browse the repository at this point in the history
Related to pytest-dev#7491
  • Loading branch information
nicoddemus committed Jul 14, 2020
1 parent 358150c commit 3878b7d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/en/doctest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,11 @@ It is possible to use fixtures using the ``getfixture`` helper:
>>> ...
>>>
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`
file or plugin; normal python files containing docstrings are not normally scanned for fixtures
unless explicitly configured by :confval:`python_files`.

Also, the :ref:`usefixtures <usefixtures>` mark and fixtures marked as :ref:`autouse <autouse>` are supported
when executing text doctest files.


Expand Down

0 comments on commit 3878b7d

Please sign in to comment.