diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-04-28 13:18:42 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-04-28 13:18:42 +0100 |
| commit | 58be7d78a105c0b0f871b339daa29cdf8f6557d4 (patch) | |
| tree | c06018f058bf8e02120c0c867486d25e5ceec793 | |
| parent | Strip trailing slash from image urls (diff) | |
| download | paper2remarkable-58be7d78a105c0b0f871b339daa29cdf8f6557d4.tar.gz paper2remarkable-58be7d78a105c0b0f871b339daa29cdf8f6557d4.zip | |
Add unit test for image urls with trailing slash
| -rw-r--r-- | tests/test_providers.py | 8 |
1 files changed, 8 insertions, 0 deletions
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() |
