aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_providers.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/test_providers.py b/tests/test_providers.py
index 5c8a8e4..ba1cc3a 100644
--- a/tests/test_providers.py
+++ b/tests/test_providers.py
@@ -25,8 +25,9 @@ from paper2remarkable.providers import (
PMLR,
PdfUrl,
PubMed,
+ SagePub,
Springer,
- SemanticScholar
+ SemanticScholar,
)
VERBOSE = False
@@ -290,6 +291,20 @@ class TestProviders(unittest.TestCase):
filename = prov.run(url)
self.assertEqual(exp, os.path.basename(filename))
+ def test_sagepub_1(self):
+ prov = SagePub(upload=False, verbose=VERBOSE)
+ url = "https://journals.sagepub.com/doi/full/10.1177/0306312714535679"
+ exp = "Rekdal_-_Academic_Urban_Legends_2014.pdf"
+ filename = prov.run(url)
+ self.assertEqual(exp, os.path.basename(filename))
+
+ def test_sagepub_2(self):
+ prov = SagePub(upload=False, verbose=VERBOSE)
+ url = "https://journals.sagepub.com/doi/pdf/10.1177/1352458517694432"
+ exp = "Kobelt_et_al_-_New_Insights_Into_the_Burden_and_Costs_of_Multiple_Sclerosis_in_Europe_2017.pdf"
+ filename = prov.run(url)
+ self.assertEqual(exp, os.path.basename(filename))
+
if __name__ == "__main__":
unittest.main()