Skip to content

Commit

Permalink
TST add missing test case
Browse files Browse the repository at this point in the history
this is to cover all branches in parse_html function
  • Loading branch information
kmike committed Nov 17, 2018
1 parent 93aea7a commit 2bfcf2c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_html_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ def test_empty(all_options):
assert extract_text(None, **all_options) == ''


def test_comment(all_options):
assert extract_text(u"<!-- hello world -->", **all_options) == ''


def test_extract_text_from_tree(all_options):
html = (u'<html><style>.div {}</style>'
'<body><p>Hello, world!</body></html>')
Expand Down

0 comments on commit 2bfcf2c

Please sign in to comment.