diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-10-28 11:40:34 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-10-28 11:40:34 +0100 |
| commit | 7fea0ce04834294c3f76fbca05cccae4f67a5da3 (patch) | |
| tree | 660b907bdc4ee2cb370985b9b75f0761a24216d4 /tests | |
| parent | Merge branch 'bugfix/content_type' (diff) | |
| parent | Merge branch 'master' into feature/tandfonline (diff) | |
| download | paper2remarkable-7fea0ce04834294c3f76fbca05cccae4f67a5da3.tar.gz paper2remarkable-7fea0ce04834294c3f76fbca05cccae4f67a5da3.zip | |
Merge branch 'feature/tandfonline'
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_providers.py | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/tests/test_providers.py b/tests/test_providers.py index e701234..4ee6773 100644 --- a/tests/test_providers.py +++ b/tests/test_providers.py @@ -15,8 +15,8 @@ import unittest from paper2remarkable.providers import ( ACM, Arxiv, - CiteSeerX, CVF, + CiteSeerX, HTML, JMLR, LocalFile, @@ -27,8 +27,9 @@ from paper2remarkable.providers import ( PdfUrl, PubMed, SagePub, - Springer, SemanticScholar, + Springer, + TandFOnline, ) VERBOSE = False @@ -269,6 +270,18 @@ class TestProviders(unittest.TestCase): filename = prov.run(url) self.assertEqual(exp, os.path.basename(filename)) + def test_tandfonline_1(self): + prov = TandFOnline(upload=False, verbose=VERBOSE) + url = "https://www.tandfonline.com/doi/full/10.1080/01621459.2017.1385466" + exp = "Fearnhead_Rigaill_-_Changepoint_Detection_in_the_Presence_of_Outliers_2018.pdf" + filename = prov.run(url) + self.assertEqual(exp, os.path.basename(filename)) + + def test_tandfonline_2(self): + prov = TandFOnline(upload=False, verbose=VERBOSE) + url = "https://www.tandfonline.com/doi/pdf/10.1080/03610918.2012.625790?scroll=top&needAccess=true" + exp = "Huskova_Marusiakova_-_M-Procedures_for_Detection_of_Changes_for_Dependent_Observations_2012.pdf" + def test_html_1(self): prov = HTML(upload=False, verbose=VERBOSE) url = "https://hbr.org/2019/11/getting-your-team-to-do-more-than-meet-deadlines" |
