Skip to content

Commit 70bdacf

Browse files
committed
Fix collection example docs
1 parent b69f853 commit 70bdacf

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

doc/en/example/pythoncollection.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ the :confval:`python_files`, :confval:`python_classes` and
103103
:confval:`python_functions` configuration options.
104104
Here is an example::
105105

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

134139
======================= no tests ran in 0.12 seconds =======================
135140

0 commit comments

Comments
 (0)