File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -90,22 +90,18 @@ be used to change the appearance of the report.
9090 Report Title
9191~~~~~~~~~~~~
9292
93- By default report title will be the filename of the report, you can edit it by using the :code: `pytest_html_report_title ` hook:
93+ By default report title will be the filename of the report, you can edit it by using the :code: `pytest_html_report_title ` hook:
9494
9595.. code-block :: python
9696
97- import pytest
98- from py.xml import html
99-
100-
10197 def pytest_html_report_title (report ):
10298 report.title = " My very own title!"
10399
104100 Environment
105101~~~~~~~~~~~
106102
107103The *Environment * section is provided by the `pytest-metadata
108- <https://pypi.python.org/pypi/pytest-metadata/> `_, plugin, and can be accessed
104+ <https://pypi.python.org/pypi/pytest-metadata/> `_ plugin, and can be accessed
109105via the :code: `pytest_configure ` hook:
110106
111107.. code-block :: python
@@ -123,7 +119,6 @@ You can edit the *Summary* section by using the :code:`pytest_html_results_summa
123119
124120.. code-block :: python
125121
126- import pytest
127122 from py.xml import html
128123
129124
@@ -248,9 +243,6 @@ following example removes all passed results from the report:
248243
249244.. code-block :: python
250245
251- import pytest
252-
253-
254246 def pytest_html_results_table_row (report , cells ):
255247 if report.passed:
256248 del cells[:]
@@ -261,7 +253,7 @@ additional HTML and log output with a notice that the log is empty:
261253
262254.. code-block :: python
263255
264- import pytest
256+ from py.xml import html
265257
266258
267259 def pytest_html_results_table_html (report , data ):
You can’t perform that action at this time.
0 commit comments