Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TST: Fix warning assertions to use pytest.warns() #3083

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

mgorny
Copy link
Contributor

@mgorny mgorny commented Jan 27, 2025

Use pytest.warns() to assert for warnings, so that the test suite passes without -Werror.

Use `pytest.warns()` to assert for warnings, so that the test suite
passes without `-Werror`.
Copy link

codecov bot commented Jan 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.49%. Comparing base (049f71e) to head (9dbf729).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3083      +/-   ##
==========================================
+ Coverage   96.48%   96.49%   +0.01%     
==========================================
  Files          52       52              
  Lines        8795     8795              
  Branches     1608     1608              
==========================================
+ Hits         8486     8487       +1     
+ Misses        184      183       -1     
  Partials      125      125              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@stefan6419846 stefan6419846 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@stefan6419846 stefan6419846 merged commit 157cea6 into py-pdf:main Jan 27, 2025
16 checks passed
@mgorny mgorny deleted the warn-assert branch January 27, 2025 07:48
@mgorny
Copy link
Contributor Author

mgorny commented Jan 27, 2025

Thanks!

stefan6419846 added a commit that referenced this pull request Feb 9, 2025
## What's new

### New Features (ENH)
- Handle attachments in /Kids and provide object-oriented API (#3108) by @stefan6419846

### Bug Fixes (BUG)
- Handle annotations being None on merging (#3111) by @stefan6419846

### Robustness (ROB)
- Prevent excessive layout mode text output from Type3 fonts (#3082) by @shartzog

### Documentation (DOC)
- stefan6419846 becomes BDFL of pypdf (#3078) by @MartinThoma

### Developer Experience (DEV)
- Remove ignoring multiple Ruff rules by @j-t-1
- Remove unused mutmut configuration (#3092) by @stefan6419846

### Testing (TST)
- Fix warning assertions to use `pytest.warns()` (#3083) by @mgorny

[Full Changelog](5.2.0...5.3.0)
@stefan6419846
Copy link
Collaborator

@mgorny I just saw that Gentoo states at https://packages.gentoo.org/packages/dev-python/pypdf that pypdf is BSD-2-Clause. This does not match our actual license, which is BSD-3-Clause. Could you please have a look into this to avoid confusion?

@mgorny
Copy link
Contributor Author

mgorny commented Feb 9, 2025

Thanks for noticing! I'll fix it along with the new version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants