From 130cf7e0dbb5b0c142f2eea2f57c22d515a8f805 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Fri, 14 Sep 2018 17:20:22 -0300 Subject: [PATCH] Fix rendering of the ini example for python_files Also added an example using one pattern per line --- doc/en/reference.rst | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/doc/en/reference.rst b/doc/en/reference.rst index 52d83cf6e..b956b0a34 100644 --- a/doc/en/reference.rst +++ b/doc/en/reference.rst @@ -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