aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2020-10-28 11:40:50 +0100
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2020-10-28 11:40:50 +0100
commit521c53832867b98b1f95e5f5e0c4c763ce1fbe7d (patch)
tree4f07627ba1ec0eca607ed0143c1a9129cbe2655b /tests
parentAdd provider for Nature (diff)
parentMerge branch 'feature/tandfonline' (diff)
downloadpaper2remarkable-521c53832867b98b1f95e5f5e0c4c763ce1fbe7d.tar.gz
paper2remarkable-521c53832867b98b1f95e5f5e0c4c763ce1fbe7d.zip
Merge branch 'master' into feature/nature
Diffstat (limited to 'tests')
-rw-r--r--tests/test_providers.py17
-rw-r--r--tests/test_ui.py5
2 files changed, 20 insertions, 2 deletions
diff --git a/tests/test_providers.py b/tests/test_providers.py
index def77d0..b8582fe 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,
@@ -28,8 +28,9 @@ from paper2remarkable.providers import (
PdfUrl,
PubMed,
SagePub,
- Springer,
SemanticScholar,
+ Springer,
+ TandFOnline,
)
VERBOSE = False
@@ -270,6 +271,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"
diff --git a/tests/test_ui.py b/tests/test_ui.py
index a1eb372..e485bfe 100644
--- a/tests/test_ui.py
+++ b/tests/test_ui.py
@@ -102,6 +102,11 @@ class TestUI(unittest.TestCase):
"https://confcats_isif.s3.amazonaws.com/web-files/journals/entries/Nonlinear%20Kalman%20Filters.pdf",
),
(
+ PdfUrl,
+ "https://publications.aston.ac.uk/id/eprint/38334/1/5th_Artificial_Neural_Networks.pdf",
+ "https://publications.aston.ac.uk/id/eprint/38334/1/5th_Artificial_Neural_Networks.pdf",
+ ),
+ (
JMLR,
"https://www.jmlr.org/papers/volume17/14-526/14-526.pdf",
"https://www.jmlr.org/papers/volume17/14-526/14-526.pdf",