Skip to content

Commit

Permalink
Added example of using name param with extra (pytest-dev#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
liiight authored and davehunt committed May 15, 2017
1 parent 0fd0d69 commit 7a5b522
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,14 @@ conftest.py file:
extra.append(pytest_html.extras.html('<div>Additional HTML</div>'))
report.extra = extra
You can also specify the :code:`name` argument for all types other than :code:`html` which will change the title of the
created hyper link:

.. code-block:: python
extra.append(pytest_html.extras.text('some string', name='Different title'))
Modifying the results table
~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit 7a5b522

Please sign in to comment.