From 58be7d78a105c0b0f871b339daa29cdf8f6557d4 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Tue, 28 Apr 2020 13:18:42 +0100 Subject: Add unit test for image urls with trailing slash --- tests/test_providers.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_providers.py b/tests/test_providers.py index 0787792..a7f17ff 100644 --- a/tests/test_providers.py +++ b/tests/test_providers.py @@ -248,6 +248,14 @@ class TestProviders(unittest.TestCase): # this is a proxy test to check that all images are included self.assertEqual(32, len(pdfplumber.open(filename).pages)) + def test_html_4(self): + prov = HTML(upload=False, verbose=VERBOSE) + url = "https://sirupsen.com/2019/" + 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() -- cgit v1.2.3