Skip to content

Commit

Permalink
Fix collection example docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed Aug 26, 2018
1 parent b69f853 commit 70bdacf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions doc/en/example/pythoncollection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ the :confval:`python_files`, :confval:`python_classes` and
:confval:`python_functions` configuration options.
Here is an example::

# Example 1: have pytest look for "check" instead of "test"
# content of pytest.ini
# Example 1: have pytest look for "check" instead of "test"
# can also be defined in tox.ini or setup.cfg file, although the section
# name in setup.cfg files should be "tool:pytest"
[pytest]
Expand All @@ -129,7 +129,12 @@ The test collection would look like this::
=========================== test session starts ============================
platform linux -- Python 3.x.y, pytest-3.x.y, py-1.x.y, pluggy-0.x.y
rootdir: $REGENDOC_TMPDIR, inifile: pytest.ini
collected 0 items
collected 2 items
<Module 'check_myapp.py'>
<Class 'CheckMyApp'>
<Instance '()'>
<Function 'simple_check'>
<Function 'complex_check'>

======================= no tests ran in 0.12 seconds =======================

Expand Down

0 comments on commit 70bdacf

Please sign in to comment.