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

[IMP] Avoiding ERROR in log with tests of report_qweb_pdf_watermark #787

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

BT-rmartin
Copy link
Contributor

@BT-rmartin BT-rmartin commented Aug 25, 2023

When having 0 pages it will raise and error
https://github.com/BT-rmartin/reporting-engine/blob/16.0-1/report_qweb_pdf_watermark/models/report.py#L56
We are in this way adding a context manager to test that at least one error message is logged on the logger with at least the given level.

@BT-rmartin
Copy link
Contributor Author

@bosd @bvanjeelharia @hbrunn @robin5210 Could you please review and approve this tiny change?

Copy link

@BT-anieto BT-anieto left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@bosd bosd left a comment

Choose a reason for hiding this comment

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

Please fix pre-commit

@BT-rmartin
Copy link
Contributor Author

@bosd Fixed

@hbrunn
Copy link
Member

hbrunn commented Aug 28, 2023

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 16.0-ocabot-merge-pr-787-by-hbrunn-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 28e3f3e into OCA:16.0 Aug 28, 2023
6 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 585ca5d. Thanks a lot for contributing to OCA. ❤️

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

Successfully merging this pull request may close these issues.

5 participants