Skip to content

Commit 603a7d9

Browse files
committed
TST add missing test case
this is to cover all branches in parse_html function
1 parent f30fc4d commit 603a7d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_html_text.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ def test_empty(all_options):
4949
assert extract_text(None, **all_options) == ''
5050

5151

52+
def test_comment(all_options):
53+
assert extract_text(u"<!-- hello world -->", **all_options) == ''
54+
55+
5256
def test_extract_text_from_tree(all_options):
5357
html = (u'<html><style>.div {}</style>'
5458
'<body><p>Hello, world!</body></html>')

0 commit comments

Comments
 (0)