Removing links column was missing in the example code. Added

This commit is contained in:
ASLAN 2025-03-05 13:21:16 +01:00
parent a4a8af004d
commit f6c60ea551
1 changed files with 2 additions and 0 deletions

View File

@ -218,11 +218,13 @@ adds a sortable time column, and removes the links column:
def pytest_html_results_table_header(cells):
cells.insert(2, "<th>Description</th>")
cells.insert(1, '<th class="sortable time" data-column-type="time">Time</th>')
cells.pop()
def pytest_html_results_table_row(report, cells):
cells.insert(2, f"<td>{report.description}</td>")
cells.insert(1, f'<td class="col-time">{datetime.utcnow()}</td>')
cells.pop()
@pytest.hookimpl(hookwrapper=True)