You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
============================= test session starts ==============================
platform linux -- Python 3.11.1, pytest-7.2.1, pluggy-1.0.0 -- /usr/local/bin/python
cachedir: .pytest_cache
rootdir: /usr/src/app, configfile: pytest.ini, testpaths: pdfcheck/tests
collecting ... collected 14 items
pdfcheck/tests/basic.py::test_annotations[pdf0] PASSED
pdfcheck/tests/font.py::test_font[pdf0] FAILED
pdfcheck/tests/margins.py::test_paper_size[pdf0] FAILED
pdfcheck/tests/margins.py::test_margins[pdf0] FAILED
pdfcheck/tests/title_page.py::test_title[pdf0] ERROR
pdfcheck/tests/title_page.py::test_by[pdf0] ERROR
pdfcheck/tests/title_page.py::test_author[pdf0] ERROR
pdfcheck/tests/title_page.py::test_description[pdf0] ERROR
pdfcheck/tests/title_page.py::test_approval_by[pdf0] ERROR
pdfcheck/tests/title_page.py::test_committee[pdf0] ERROR
pdfcheck/tests/title_page.py::test_university[pdf0] ERROR
pdfcheck/tests/title_page.py::test_date[pdf0] ERROR
pdfcheck/tests/title_page.py::test_horizontal_alignment[pdf0] ERROR
pdfcheck/tests/title_page.py::test_vertical_alignment[pdf0] ERROR
==================================== ERRORS ====================================
______________________ ERROR at setup of test_title[pdf0] ______________________
E AttributeError: 'Document' object has no attribute 'loadPage'
_______________________ ERROR at setup of test_by[pdf0] ________________________
E AttributeError: 'Document' object has no attribute 'loadPage'
_____________________ ERROR at setup of test_author[pdf0] ______________________
E AttributeError: 'Document' object has no attribute 'loadPage'
___________________ ERROR at setup of test_description[pdf0] ___________________
E AttributeError: 'Document' object has no attribute 'loadPage'
___________________ ERROR at setup of test_approval_by[pdf0] ___________________
E AttributeError: 'Document' object has no attribute 'loadPage'
____________________ ERROR at setup of test_committee[pdf0] ____________________
E AttributeError: 'Document' object has no attribute 'loadPage'
___________________ ERROR at setup of test_university[pdf0] ____________________
E AttributeError: 'Document' object has no attribute 'loadPage'
______________________ ERROR at setup of test_date[pdf0] _______________________
E AttributeError: 'Document' object has no attribute 'loadPage'
______________ ERROR at setup of test_horizontal_alignment[pdf0] _______________
E AttributeError: 'Document' object has no attribute 'loadPage'
_______________ ERROR at setup of test_vertical_alignment[pdf0] ________________
E AttributeError: 'Document' object has no attribute 'loadPage'
=================================== FAILURES ===================================
/usr/src/app/pdfcheck/core.py:197: AttributeError: 'Page' object has no attribute 'getTextPage'
/usr/src/app/pdfcheck/tests/margins.py:71: AttributeError: 'Page' object has no attribute 'CropBox'
/usr/src/app/pdfcheck/core.py:174: AttributeError: 'Page' object has no attribute 'CropBox'
==================== 3 failed, 1 passed, 10 errors in 0.13s ====================
Other Comments
As a Python developer, it looks like the error messages indicate a version mismatch for some dependencies (i.e. the code expects a library of version X.X.X but version Y.Y.Y is installed). I have not taken a closer look at the Docker containers or the Python code used to power these checks to verify this hunch.
The text was updated successfully, but these errors were encountered:
Problem Summary
After following the instructions in the README to create the sample PDF, running
check.sh
fails all but one test.Expected Behavior
The sample workflow passes all tests.
Steps to Reproduce
Other Comments
As a Python developer, it looks like the error messages indicate a version mismatch for some dependencies (i.e. the code expects a library of version
X.X.X
but versionY.Y.Y
is installed). I have not taken a closer look at the Docker containers or the Python code used to power these checks to verify this hunch.The text was updated successfully, but these errors were encountered: