diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-06-20 22:42:10 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-06-20 22:42:10 +0100 |
| commit | ec000de563a32b4e757c9afde5a1b1b5ac80a511 (patch) | |
| tree | c578df0983cecc98a3b22321b2d061f4630aaf78 /tests | |
| parent | Fix no_crop bug (diff) | |
| download | paper2remarkable-ec000de563a32b4e757c9afde5a1b1b5ac80a511.tar.gz paper2remarkable-ec000de563a32b4e757c9afde5a1b1b5ac80a511.zip | |
Add support for using ReadabiliPy
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_providers.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_providers.py b/tests/test_providers.py index fb75fbd..ca6c1ae 100644 --- a/tests/test_providers.py +++ b/tests/test_providers.py @@ -268,6 +268,13 @@ class TestProviders(unittest.TestCase): # this is a proxy test to check that all images are included self.assertEqual(4, len(pdfplumber.open(filename).pages)) + def test_html_5(self): + prov = HTML(upload=False, verbose=VERBOSE) + url = "https://www.spiegel.de/panorama/london-tausende-rechtsextreme-demonstranten-wollen-statuen-schuetzen-a-2a1ed9b9-708a-40dc-a5ff-f312e97a60ca#" + filename = prov.run(url) + # this is a proxy test to check that all images are included + self.assertEqual(4, len(pdfplumber.open(filename).pages)) + if __name__ == "__main__": unittest.main() |
