Merge pull request #8493 from pytest-dev/docs-fix
tweak documentation of report's sections attribute
This commit is contained in:
commit
878a51ef53
|
@ -281,10 +281,10 @@ class TestReport(BaseReport):
|
||||||
#: defined properties of the test.
|
#: defined properties of the test.
|
||||||
self.user_properties = list(user_properties or [])
|
self.user_properties = list(user_properties or [])
|
||||||
|
|
||||||
#: List of pairs ``(str, str)`` of extra information which needs to
|
#: Tuples of str ``(heading, content)`` with extra information
|
||||||
#: marshallable. Used by pytest to add captured text
|
#: for the test report. Used by pytest to add text captured
|
||||||
#: from ``stdout`` and ``stderr``, but may be used by other plugins
|
#: from ``stdout``, ``stderr``, and intercepted logging events. May
|
||||||
#: to add arbitrary information to reports.
|
#: be used by other plugins to add arbitrary information to reports.
|
||||||
self.sections = list(sections)
|
self.sections = list(sections)
|
||||||
|
|
||||||
#: Time it took to run just the test.
|
#: Time it took to run just the test.
|
||||||
|
@ -381,11 +381,10 @@ class CollectReport(BaseReport):
|
||||||
#: The collected items and collection nodes.
|
#: The collected items and collection nodes.
|
||||||
self.result = result or []
|
self.result = result or []
|
||||||
|
|
||||||
#: List of pairs ``(str, str)`` of extra information which needs to
|
#: Tuples of str ``(heading, content)`` with extra information
|
||||||
#: marshallable.
|
#: for the test report. Used by pytest to add text captured
|
||||||
# Used by pytest to add captured text : from ``stdout`` and ``stderr``,
|
#: from ``stdout``, ``stderr``, and intercepted logging events. May
|
||||||
# but may be used by other plugins : to add arbitrary information to
|
#: be used by other plugins to add arbitrary information to reports.
|
||||||
# reports.
|
|
||||||
self.sections = list(sections)
|
self.sections = list(sections)
|
||||||
|
|
||||||
self.__dict__.update(extra)
|
self.__dict__.update(extra)
|
||||||
|
|
Loading…
Reference in New Issue