fix some bunk formatting in the CollectReport, and reword the description of the 'sections' attribute

This commit is contained in:
wim glenn 2021-03-25 22:25:19 -05:00
parent 8d21df0dc6
commit 76ab94e4a0
No known key found for this signature in database
GPG Key ID: C127F552CFFFC6DE
1 changed files with 8 additions and 9 deletions

View File

@ -281,10 +281,10 @@ class TestReport(BaseReport):
#: defined properties of the test.
self.user_properties = list(user_properties or [])
#: List of pairs ``(str, str)`` of extra information which needs to
#: marshallable. Used by pytest to add captured text
#: from ``stdout`` and ``stderr``, but may be used by other plugins
#: to add arbitrary information to reports.
#: Tuples of str ``(heading, content)`` with extra information
#: for the test report. Used by pytest to add text captured
#: from ``stdout``, ``stderr``, and intercepted logging events. May
#: be used by other plugins to add arbitrary information to reports.
self.sections = list(sections)
#: Time it took to run just the test.
@ -381,11 +381,10 @@ class CollectReport(BaseReport):
#: The collected items and collection nodes.
self.result = result or []
#: List of pairs ``(str, str)`` of extra information which needs to
#: marshallable.
# Used by pytest to add captured text : from ``stdout`` and ``stderr``,
# but may be used by other plugins : to add arbitrary information to
# reports.
#: Tuples of str ``(heading, content)`` with extra information
#: for the test report. Used by pytest to add text captured
#: from ``stdout``, ``stderr``, and intercepted logging events. May
#: be used by other plugins to add arbitrary information to reports.
self.sections = list(sections)
self.__dict__.update(extra)