@@ -179,7 +179,7 @@ In the failure traceback we see that the test function was called with a
179
179
function. The test function fails on our deliberate ``assert 0 ``. Here is
180
180
the exact protocol used by ``pytest `` to call the test function this way:
181
181
182
- 1. pytest :ref: `finds <test discovery >` the ``test_ehlo `` because
182
+ 1. pytest :ref: `finds <test discovery >` the test ``test_ehlo `` because
183
183
of the ``test_ `` prefix. The test function needs a function argument
184
184
named ``smtp_connection ``. A matching fixture function is discovered by
185
185
looking for a fixture-marked function named ``smtp_connection ``.
@@ -859,7 +859,7 @@ be used with ``-k`` to select specific cases to run, and they will
859
859
also identify the specific case when one is failing. Running pytest
860
860
with ``--collect-only `` will show the generated IDs.
861
861
862
- Numbers, strings, booleans and None will have their usual string
862
+ Numbers, strings, booleans and `` None `` will have their usual string
863
863
representation used in the test ID. For other objects, pytest will
864
864
make a string based on the argument name. It is possible to customise
865
865
the string used in a test ID for a certain fixture value by using the
@@ -898,7 +898,7 @@ the string used in a test ID for a certain fixture value by using the
898
898
The above shows how ``ids `` can be either a list of strings to use or
899
899
a function which will be called with the fixture value and then
900
900
has to return a string to use. In the latter case if the function
901
- return ``None `` then pytest's auto-generated ID will be used.
901
+ returns ``None `` then pytest's auto-generated ID will be used.
902
902
903
903
Running the above tests results in the following test IDs being used:
904
904
0 commit comments