diff --git a/requirements.txt b/requirements.txt index e223e05..85d7829 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ certifi>=2017.7.27.1 html2text>=2016.9.19 lxml>=3.8.0 +beautifulsoup4 \ No newline at end of file diff --git a/tests/test_advanced.py b/tests/test_advanced.py index 86193c0..164bb69 100755 --- a/tests/test_advanced.py +++ b/tests/test_advanced.py @@ -99,6 +99,12 @@ def test_not_found(self): except LookupError as detail: pass + def test_finding_infobox_with_tag(self) : + page = wptools.page("秋田県民会館", lang='ja', boxtag='infobox') + page.get_parse(show=False) + infobox = page.data['infobox'] + self.assertTrue(infobox is not None) + def test_lookup_unicode_error(self): """ Raise LookupError without UnicodeDecodeError. Issue #29 diff --git a/tests/test_basic.py b/tests/test_basic.py index 733a463..ca08636 100755 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -424,6 +424,7 @@ def test_page_get_parse_66(self): self.assertEqual(len(infobox['Genre'].split('