aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2020-02-04 10:50:50 +0000
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2020-02-04 10:50:50 +0000
commitce9c1333fcf761e322ad169df3969ca23d9938e7 (patch)
treed1915146e1d57d94328ceb5e437293600d27dbf0 /tests
parentAutomatically detect html source using content type (diff)
downloadpaper2remarkable-ce9c1333fcf761e322ad169df3969ca23d9938e7.tar.gz
paper2remarkable-ce9c1333fcf761e322ad169df3969ca23d9938e7.zip
Add another test for the html provider
Diffstat (limited to 'tests')
-rw-r--r--tests/test_providers.py8
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()