From 603a7d9fdb6f61d0fbede05210730ced9ae2e3c0 Mon Sep 17 00:00:00 2001 From: Mikhail Korobov Date: Wed, 14 Nov 2018 15:36:55 +0000 Subject: [PATCH] TST add missing test case this is to cover all branches in parse_html function --- tests/test_html_text.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_html_text.py b/tests/test_html_text.py index 47384b0..0f1562f 100644 --- a/tests/test_html_text.py +++ b/tests/test_html_text.py @@ -49,6 +49,10 @@ def test_empty(all_options): assert extract_text(None, **all_options) == '' +def test_comment(all_options): + assert extract_text(u"", **all_options) == '' + + def test_extract_text_from_tree(all_options): html = (u'' '

Hello, world!')