Skip to content

Commit aa9c529

Browse files
authored
docs: Update to current (#616)
1 parent ac6d4b4 commit aa9c529

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/user_guide.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ You can edit the *Summary* section by using the :code:`pytest_html_results_summa
106106
107107
108108
def pytest_html_results_summary(prefix, summary, postfix):
109-
prefix.extend([html.p("foo: bar")])
109+
prefix.extend(["<p>foo: bar</p>"])
110110
111111
Extra content
112112
~~~~~~~~~~~~~
@@ -238,7 +238,7 @@ additional HTML and log output with a notice that the log is empty:
238238
def pytest_html_results_table_html(report, data):
239239
if report.passed:
240240
del data[:]
241-
data.append(html.div("No log output captured.", class_="empty log"))
241+
data.append("<div class='empty log'>No log output captured.</div>")
242242
243243
Display options
244244
---------------

0 commit comments

Comments
 (0)