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.
90
90
Report Title
91
91
~~~~~~~~~~~~
92
92
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:
94
94
95
95
.. code-block :: python
96
96
97
- import pytest
98
- from py.xml import html
99
-
100
-
101
97
def pytest_html_report_title (report ):
102
98
report.title = " My very own title!"
103
99
104
100
Environment
105
101
~~~~~~~~~~~
106
102
107
103
The *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
109
105
via the :code: `pytest_configure ` hook:
110
106
111
107
.. code-block :: python
@@ -123,7 +119,6 @@ You can edit the *Summary* section by using the :code:`pytest_html_results_summa
123
119
124
120
.. code-block :: python
125
121
126
- import pytest
127
122
from py.xml import html
128
123
129
124
@@ -248,9 +243,6 @@ following example removes all passed results from the report:
248
243
249
244
.. code-block :: python
250
245
251
- import pytest
252
-
253
-
254
246
def pytest_html_results_table_row (report , cells ):
255
247
if report.passed:
256
248
del cells[:]
@@ -261,7 +253,7 @@ additional HTML and log output with a notice that the log is empty:
261
253
262
254
.. code-block :: python
263
255
264
- import pytest
256
+ from py.xml import html
265
257
266
258
267
259
def pytest_html_results_table_html (report , data ):
You can’t perform that action at this time.
0 commit comments