Added example of using `name` param with extra (#115)

This commit is contained in:
Or Carmi 2017-05-15 19:29:42 +03:00 committed by Dave Hunt
parent 0fd0d69336
commit 7a5b522436
1 changed files with 8 additions and 0 deletions

View File

@ -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
~~~~~~~~~~~~~~~~~~~~~~~~~~~