We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11022e1 commit 8224036Copy full SHA for 8224036
doc/en/how-to/subtests.rst
@@ -61,6 +61,14 @@ Each assertion failure or error is caught by the context manager and reported in
61
FAILED test_subtest.py::test - contains 2 failed subtests
62
3 failed, 3 subtests passed in 0.12s
63
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
72
.. code-block:: python
73
74
def test(subtests):
0 commit comments