Skip to content

Commit

Permalink
TST: add test for py-pdf#1825
Browse files Browse the repository at this point in the history
  • Loading branch information
exiledkingcc committed May 3, 2023
1 parent f815a68 commit c881ce8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions requirements/ci.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pycryptodome
pytest
pytest-benchmark
pytest-socket
pytest-timeout
typeguard
types-dataclasses
types-Pillow
11 changes: 11 additions & 0 deletions tests/test_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from pathlib import Path

import pytest
import pytest_timeout

from pypdf import PdfReader
from pypdf._reader import convert_to_int, convertToInt
Expand Down Expand Up @@ -1401,3 +1402,13 @@ def test_iss1756():
in_pdf = PdfReader(BytesIO(get_pdf_from_url(url, name=name)))
in_pdf.trailer["/ID"]
# removed to cope with missing cryptodome during commit check : len(in_pdf.pages)


@pytest.mark.enable_socket()
@pytest.mark.timeout(10)
def test_iss1825():
url = "https://github.com/py-pdf/pypdf/files/11367871/MiFO_LFO_FEIS_NOA_Published.3.pdf"
name = "iss1825.pdf"
reader = PdfReader(BytesIO(get_pdf_from_url(url, name=name)))
page = reader.pages[0]
page.extract_text()

0 comments on commit c881ce8

Please sign in to comment.