Closed Zingzy closed 1 month ago
Hi @Zingzy
This looks great, thank your for your contribution 👍
Could you just run black pdfly/cat.py
and include the changes in this PR?
Currently the GitHub Actions pipeline fails because this code formatter has not been applied to this file following your changes:
https://github.com/py-pdf/pdfly/actions/runs/11204446524/job/31171421427?pr=58
Hello @Lucas-C, I made the necessary changes. 😄
Hello @Lucas-C any updates on this?
I merged your MR!
Thank you very much for your contribution @Zingzy 👍
PR Description
This PR addresses issue #33 where users attempting to use the
pdfly cat
command to extract a range of pages outside the number of pages in the PDF document do not receive a warning. The following changes have been made:stderr
if it is.pytest.skip
decorator from the test case: Enabled thetest_cat_subset_warn_on_missing_pages
test to verify the warning message instderr
.Testing
test_cat_subset_warn_on_missing_pages
test passes, confirming that the warning is printed to stderr when the page range is out of bounds.