Skip to content

Commit 8224036

Browse files
committed
docs: restore accidentally removed subtest output explanation
1 parent 11022e1 commit 8224036

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/en/how-to/subtests.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ Each assertion failure or error is caught by the context manager and reported in
6161
FAILED test_subtest.py::test - contains 2 failed subtests
6262
3 failed, 3 subtests passed in 0.12s
6363
64+
In the output above:
65+
66+
* Subtest failures are reported as ``SUBFAILED``.
67+
* Subtests are reported first and the "top-level" test is reported at the end on its own.
68+
69+
Note that it is possible to use ``subtests`` multiple times in the same test, or even mix and match with normal assertions
70+
outside the ``subtests.test`` block:
71+
6472
.. code-block:: python
6573
6674
def test(subtests):

0 commit comments

Comments
 (0)