aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJocelyn Boullier <jocelyn@boullier.bzh>2021-03-02 21:37:57 +0100
committerJocelyn Boullier <jocelyn@boullier.bzh>2021-03-02 21:38:35 +0100
commitdb8ca7a5eb461a3b1c165407a731fb4a71a199fe (patch)
tree7c730b1868062ab11eaa649f6f35734f50fdf36c
parenttests: add test for keeping the ToC after processing (diff)
downloadpaper2remarkable-db8ca7a5eb461a3b1c165407a731fb4a71a199fe.tar.gz
paper2remarkable-db8ca7a5eb461a3b1c165407a731fb4a71a199fe.zip
tests: add additional test about ToC, this time with arXiv provider
-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 9eec83b..af69c64 100644
--- a/tests/test_providers.py
+++ b/tests/test_providers.py
@@ -450,6 +450,14 @@ class TestProviders(unittest.TestCase):
with pdf.open_outline() as outline:
assert len(outline.root) > 0
+ def test_arxiv_copy_toc(self):
+ """Make sure the table of content is kept after processing when using the arXiv provider."""
+ prov = Arxiv(upload=False, verbose=VERBOSE)
+ filename = prov.run("https://arxiv.org/abs/1711.03512")
+ with Pdf.open(filename) as pdf:
+ with pdf.open_outline() as outline:
+ assert len(outline.root) > 0
+
if __name__ == "__main__":
unittest.main()