Fix readme typos (#398)

* Clean up some typos in the README

* add back a newline

* fix lint
This commit is contained in:
Gleb Nikonorov 2020-12-03 09:25:57 -05:00 committed by GitHub
parent 0e82906e71
commit b9fb0a0ea1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 11 deletions

View File

@ -90,14 +90,10 @@ be used to change the appearance of the report.
Report Title
~~~~~~~~~~~~
By default report title will be the filename of the report, you can edit it by using the :code: `pytest_html_report_title` hook:
By default report title will be the filename of the report, you can edit it by using the :code:`pytest_html_report_title` hook:
.. code-block:: python
import pytest
from py.xml import html
def pytest_html_report_title(report):
report.title = "My very own title!"
@ -105,7 +101,7 @@ Environment
~~~~~~~~~~~
The *Environment* section is provided by the `pytest-metadata
<https://pypi.python.org/pypi/pytest-metadata/>`_, plugin, and can be accessed
<https://pypi.python.org/pypi/pytest-metadata/>`_ plugin, and can be accessed
via the :code:`pytest_configure` hook:
.. code-block:: python
@ -123,7 +119,6 @@ You can edit the *Summary* section by using the :code:`pytest_html_results_summa
.. code-block:: python
import pytest
from py.xml import html
@ -248,9 +243,6 @@ following example removes all passed results from the report:
.. code-block:: python
import pytest
def pytest_html_results_table_row(report, cells):
if report.passed:
del cells[:]
@ -261,7 +253,7 @@ additional HTML and log output with a notice that the log is empty:
.. code-block:: python
import pytest
from py.xml import html
def pytest_html_results_table_html(report, data):