def pytest_html_results_table_html(report, data): if report.passed: del data[:] data.append(html.div('未捕获日志输出.', class_='empty log'))
def test_inline(): h = html.div(html.span('foo'), html.span('bar')) assert (h.unicode( indent=2) == '<div><span>foo</span><span>bar</span></div>')
def test_inline(): h = html.div(html.span('foo'), html.span('bar')) assert (h.unicode(indent=2) == '<div><span>foo</span><span>bar</span></div>')