We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbb3b39 commit e407056Copy full SHA for e407056
docs/user_guide.rst
@@ -212,6 +212,7 @@ adds a sortable time column, and removes the links column:
212
.. code-block:: python
213
214
import pytest
215
+ from datetime import datetime
216
217
218
def pytest_html_results_table_header(cells):
@@ -220,8 +221,8 @@ adds a sortable time column, and removes the links column:
220
221
222
223
def pytest_html_results_table_row(report, cells):
- cells.insert(2, "<td>A description</td>")
224
- cells.insert(1, '<td class="col-time">A time</td>')
+ cells.insert(2, f"<td>{report.description}</td>")
225
+ cells.insert(1, f'<td class="col-time">{datetime.utcnow()}</td>')
226
227
228
@pytest.hookimpl(hookwrapper=True)
0 commit comments