Skip to content

Commit b9fb0a0

Browse files
authored
Fix readme typos (#398)
* Clean up some typos in the README * add back a newline * fix lint
1 parent 0e82906 commit b9fb0a0

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

README.rst

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff 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

107103
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
109105
via 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):

0 commit comments

Comments
 (0)