Skip to content

TST: Use external repository for larger/more PDFs for testing#820

Merged
MartinThoma merged 12 commits intomainfrom
external-tests
Apr 26, 2022
Merged

TST: Use external repository for larger/more PDFs for testing#820
MartinThoma merged 12 commits intomainfrom
external-tests

Conversation

@MartinThoma
Copy link
Copy Markdown
Member

No description provided.

@MartinThoma MartinThoma added the nf-testing Non-functional change: Testing label Apr 25, 2022
@MasterOdin
Copy link
Copy Markdown
Member

If going this route, I think it'd be far better to use git submodules so that the link between the repos is more explicit, though I hate submodules and would advocate for just including the PDFs into the repo as they're probably a generate once type situation.

@MartinThoma
Copy link
Copy Markdown
Member Author

I want to avoid the repository from becoming too big. I have a couple of pdf files which are several megabytes. This would make cloning painful

@MartinThoma
Copy link
Copy Markdown
Member Author

Submodules might be a good idea though. Most people would not need to clone the submodule 🤔

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 26, 2022

Codecov Report

Merging #820 (ab0c26f) into main (39ffc1d) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #820   +/-   ##
=======================================
  Coverage   76.01%   76.01%           
=======================================
  Files          12       12           
  Lines        3565     3565           
  Branches      823      823           
=======================================
  Hits         2710     2710           
  Misses        638      638           
  Partials      217      217           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 39ffc1d...ab0c26f. Read the comment docs.

@MartinThoma MartinThoma merged commit 963b251 into main Apr 26, 2022
@MartinThoma MartinThoma deleted the external-tests branch April 26, 2022 15:03
MartinThoma added a commit that referenced this pull request Apr 28, 2022
* Use submodule so that the connection is clear. Ensure that Flake8 issues of the submodule don't show up here
* As a first step, just try to get the number of pages from the non-encrypted PDFs
* Create an "external" pytest marker which allows people to deactivate tests that need the submodule
VictorCarlquist pushed a commit to VictorCarlquist/PyPDF2 that referenced this pull request Apr 29, 2022
…#820)

* Use submodule so that the connection is clear. Ensure that Flake8 issues of the submodule don't show up here
* As a first step, just try to get the number of pages from the non-encrypted PDFs
* Create an "external" pytest marker which allows people to deactivate tests that need the submodule
MartinThoma added a commit that referenced this pull request May 1, 2022
Robustness (ROB):
-  Handle missing destinations in reader (#840)
-  warn-only in readStringFromStream (#837)
-  Fix corruption in startxref or xref table (#788 and #830)

Documentation (DOC):
-  Project Governance (#799)
-  History of PyPDF2
-  PDF feature/version support (#816)
-  More details on text parsing issues (#815)

Developer Experience (DEV):
-  Add benchmark command to Makefile
-  Ignore IronPython parts for code coverage (#826)

Maintenance (MAINT):
-  Split pdf module (#836)
-  Separated CCITTFax param parsing/decoding (#841)
-  Update requirements files

Testing (TST):
-  Use external repository for larger/more PDFs for testing (#820)
-  Swap incorrect test names (#838)
-  Add test for PdfFileReader and page properties (#835)
-  Add tests for PyPDF2.generic (#831)
-  Add tests for utils, form fields, PageRange (#827)
-  Add test for ASCII85Decode (#825)
-  Add test for FlateDecode (#823)
-  Add test for filters.ASCIIHexDecode (#822)

Code Style (STY):
-  Apply pre-commit (black, isort) + use snake_case variables (#832)
-  Remove debug code (#828)
-  Documentation, Variable names (#839)

Full Changelog: 1.27.9...1.27.10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

nf-testing Non-functional change: Testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants