We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b6dc93 commit 3ad5b9dCopy full SHA for 3ad5b9d
doc/en/example/simple.rst
@@ -273,13 +273,13 @@ which will add the string to the test header accordingly::
273
274
You can also return a list of strings which will be considered as several
275
lines of information. You can of course also make the amount of reporting
276
-information on e.g. the value of ``config.option.verbose`` so that
+information on e.g. the value of ``config.getoption('verbose')`` so that
277
you present more information appropriately::
278
279
# content of conftest.py
280
281
def pytest_report_header(config):
282
- if config.option.verbose > 0:
+ if config.getoption('verbose') > 0:
283
return ["info1: did you know that ...", "did you?"]
284
285
which will add info only when run with "--v"::
0 commit comments