Skip to content

Commit

Permalink
Merge pull request #3984 from nicoddemus/fix-docs-formatting
Browse files Browse the repository at this point in the history
Fix rendering of the ini example for python_files
  • Loading branch information
nicoddemus authored Sep 15, 2018
2 parents f53eff9 + 130cf7e commit 2803eb9
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions doc/en/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1256,15 +1256,25 @@ passed multiple times. The expected format is ``name=value``. For example::

One or more Glob-style file patterns determining which python files
are considered as test modules. Search for multiple glob patterns by
adding a space between patterns::
adding a space between patterns:

.. code-block:: ini
[pytest]
python_files = test_*.py check_*.py example_*.py
By default, pytest will consider any file matching with ``test_*.py``
and ``*_test.py`` globs as a test module.
Or one per line:

.. code-block:: ini
[pytest]
python_files =
test_*.py
check_*.py
example_*.py
By default, files matching ``test_*.py`` and ``*_test.py`` will be considered
test modules.


.. confval:: python_functions
Expand Down

0 comments on commit 2803eb9

Please sign in to comment.