diff options
| -rw-r--r-- | tests/test_providers.py | 8 |
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() |
