diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-02-04 10:50:50 +0000 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-02-04 10:50:50 +0000 |
| commit | ce9c1333fcf761e322ad169df3969ca23d9938e7 (patch) | |
| tree | d1915146e1d57d94328ceb5e437293600d27dbf0 /tests | |
| parent | Automatically detect html source using content type (diff) | |
| download | paper2remarkable-ce9c1333fcf761e322ad169df3969ca23d9938e7.tar.gz paper2remarkable-ce9c1333fcf761e322ad169df3969ca23d9938e7.zip | |
Add another test for the html provider
Diffstat (limited to 'tests')
| -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 80f4662..d0e3d40 100644 --- a/tests/test_providers.py +++ b/tests/test_providers.py @@ -214,6 +214,14 @@ class TestProviders(unittest.TestCase): filename = prov.run(url) self.assertEqual(exp, os.path.basename(filename)) + def test_html_2(self): + prov = HTML(upload=False, verbose=VERBOSE) + url = "https://www.nature.com/articles/d41586-020-00176-4" + exp = "Isaac_Asimov_Centenary_of_the_Great_Explainer.pdf" + filename = prov.run(url) + self.assertEqual(exp, os.path.basename(filename)) + + if __name__ == "__main__": unittest.main() |
