Skip to content

Commit 4f318f8

Browse files
committed
Adjust regendoc for getting-started
1 parent 36faccc commit 4f318f8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/en/getting-started.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ Execute the test function with “quiet” reporting mode:
115115
Group multiple tests in a class
116116
--------------------------------------------------------------
117117

118+
.. regendoc:wipe
119+
118120
Once you develop multiple tests, you may want to group them into a class. pytest makes it easy to create a class containing more than one test:
119121

120122
.. code-block:: python
@@ -163,8 +165,11 @@ Something to be aware of when grouping tests inside classes is that each test ha
163165
Having each test share the same class instance would be very detrimental to test isolation and would promote poor test practices.
164166
This is outlined below:
165167

168+
.. regendoc:wipe
169+
166170
.. code-block:: python
167171
172+
# content of test_class_demo.py
168173
class TestClassDemoInstance:
169174
def test_one(self):
170175
assert 0

0 commit comments

Comments
 (0)