Skip to content

Commit f6c60ea

Browse files
committed
Removing links column was missing in the example code. Added
1 parent a4a8af0 commit f6c60ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/user_guide.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,13 @@ adds a sortable time column, and removes the links column:
218218
def pytest_html_results_table_header(cells):
219219
cells.insert(2, "<th>Description</th>")
220220
cells.insert(1, '<th class="sortable time" data-column-type="time">Time</th>')
221+
cells.pop()
221222
222223
223224
def pytest_html_results_table_row(report, cells):
224225
cells.insert(2, f"<td>{report.description}</td>")
225226
cells.insert(1, f'<td class="col-time">{datetime.utcnow()}</td>')
227+
cells.pop()
226228
227229
228230
@pytest.hookimpl(hookwrapper=True)

0 commit comments

Comments
 (0)