@@ -927,6 +927,8 @@ doesn't guarantee a safe cleanup. That's covered in a bit more detail in
927
927
.. code-block :: pytest
928
928
929
929
$ pytest -q test_emaillib.py
930
+ . [100%]
931
+ 1 passed in 0.12s
930
932
931
933
Handling errors for yield fixture
932
934
"""""""""""""""""""""""""""""""""
@@ -1010,6 +1012,8 @@ does offer some nuances for when you're in a pinch.
1010
1012
.. code-block :: pytest
1011
1013
1012
1014
$ pytest -q test_emaillib.py
1015
+ . [100%]
1016
+ 1 passed in 0.12s
1013
1017
1014
1018
.. _`safe teardowns` :
1015
1019
@@ -1062,6 +1066,8 @@ wouldn't be compact anymore).
1062
1066
.. code-block :: pytest
1063
1067
1064
1068
$ pytest -q test_emaillib.py
1069
+ . [100%]
1070
+ 1 passed in 0.12s
1065
1071
1066
1072
.. _`safe fixture structure` :
1067
1073
@@ -1978,11 +1984,13 @@ Running the above tests results in the following test IDs being used:
1978
1984
platform linux -- Python 3.x.y, pytest-6.x.y, py-1.x.y, pluggy-0.x.y
1979
1985
cachedir: $PYTHON_PREFIX/.pytest_cache
1980
1986
rootdir: $REGENDOC_TMPDIR
1981
- collected 10 items
1987
+ collected 11 items
1982
1988
1983
1989
<Module test_anothersmtp.py>
1984
1990
<Function test_showhelo[smtp.gmail.com]>
1985
1991
<Function test_showhelo[mail.python.org]>
1992
+ <Module test_emaillib.py>
1993
+ <Function test_email_received>
1986
1994
<Module test_ids.py>
1987
1995
<Function test_a[spam]>
1988
1996
<Function test_a[ham]>
@@ -1994,7 +2002,7 @@ Running the above tests results in the following test IDs being used:
1994
2002
<Function test_ehlo[mail.python.org]>
1995
2003
<Function test_noop[mail.python.org]>
1996
2004
1997
- ======================= 10 tests collected in 0.12s ========================
2005
+ ======================= 11 tests collected in 0.12s ========================
1998
2006
1999
2007
.. _`fixture-parametrize-marks` :
2000
2008
0 commit comments