Skip to content

Commit 23c3132

Browse files
committed
Add even more detailed prints to debug failing tests
1 parent 5abb656 commit 23c3132

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_html.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,11 @@ def test_document_parsed_from_plain_text_returns_plain_text():
347347
root = HtmlDocument.get_root(html)
348348
print("ROOT:")
349349
print(root)
350+
print('Body: ', root.find('body'))
350351
parser = SECHTMLParser(root)
351352
doc = parser.parse()
352353
print("Parsed Document:")
353-
print(doc)
354+
print('[' + doc + ']' + doc is None)
354355
document = Document.parse(html)
355356
assert document
356357
assert len(document) == 1

0 commit comments

Comments
 (0)