Skip to content

Commit 25d5c93

Browse files
committed
TST: add test_iss1723() PDF to example_files.yaml
1 parent 8299131 commit 25d5c93

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/example_files.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,5 @@
114114
url: https://www.joinville.sc.gov.br/wp-content/uploads/2023/11/Pesquisa-de-Precos-Combustiveis-novembro-2023.pdf
115115
- local_filename: iss2138.pdf
116116
url: https://github.com/py-pdf/pypdf/files/12483807/AEO.1172.pdf
117+
- local_filename: iss1723.pdf
118+
url: https://github.com/py-pdf/pypdf/files/11015242/inputFile.pdf

tests/test_writer.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test the pypdf._writer module."""
2+
23
import re
34
import shutil
45
import subprocess
@@ -1405,9 +1406,8 @@ def test_late_iss1654():
14051406
@pytest.mark.enable_socket()
14061407
def test_iss1723():
14071408
# test of an annotation(link) directly stored in the /Annots in the page
1408-
url = "https://github.com/py-pdf/pypdf/files/11015242/inputFile.pdf"
14091409
name = "iss1723.pdf"
1410-
reader = PdfReader(BytesIO(get_data_from_url(url, name=name)))
1410+
reader = PdfReader(BytesIO(get_data_from_url(name=name)))
14111411
writer = PdfWriter()
14121412
writer.append(reader, (3, 5))
14131413

0 commit comments

Comments
 (0)