docs: Update to current (#616)

This commit is contained in:
Jim Brännlund 2023-04-02 15:38:26 +02:00 committed by GitHub
parent ac6d4b4fcc
commit aa9c5291b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ You can edit the *Summary* section by using the :code:`pytest_html_results_summa
def pytest_html_results_summary(prefix, summary, postfix):
prefix.extend([html.p("foo: bar")])
prefix.extend(["<p>foo: bar</p>"])
Extra content
~~~~~~~~~~~~~
@ -238,7 +238,7 @@ additional HTML and log output with a notice that the log is empty:
def pytest_html_results_table_html(report, data):
if report.passed:
del data[:]
data.append(html.div("No log output captured.", class_="empty log"))
data.append("<div class='empty log'>No log output captured.</div>")
Display options
---------------