Skip to content

Conversation

@apami0111
Copy link
Contributor

  • Replaced assertRaises with assertRaisesRegex to validate specific error messages.
  • Added docstrings to each test case for better clarity and documentation.

Copy link

@rrebollo rrebollo left a comment

Choose a reason for hiding this comment

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

Code Review. LGTM!

Copy link

@celm1990 celm1990 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the improvements.
@pedrobaeza, could you please review this?

@pedrobaeza
Copy link
Member

Why changing ValidationError by UserError?

@apami0111 apami0111 force-pushed the 18.0-imp-partner_inductry_scundary-improve_test branch 2 times, most recently from 8f61a25 to 27762ba Compare October 29, 2025 02:17
- Replaced assertRaises with assertRaisesRegex to validate specific error messages.
- Added docstrings to each test case for better clarity and documentation.
@apami0111
Copy link
Contributor Author

Thank you very much for your feedback! @pedrobaeza
You're absolutely right - it should remain as ValidationError.
I've reverted the change and restored the correct exception.

@pedrobaeza pedrobaeza added this to the 18.0 milestone Oct 29, 2025
Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 18.0-ocabot-merge-pr-2067-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 0b12ca8 into OCA:18.0 Oct 29, 2025
6 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 29cea11. 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