Update l10n test: check .po files for missing entries comments#3594
Conversation
Summary by CodeRabbit
WalkthroughThe PR adds a validation assertion to the ChangesLocalization PO Entry Comment Validation
Estimated Code Review Effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly Related PRs
Suggested Labels
Suggested Reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #3594 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 315 315
Lines 18827 18827
Branches 2409 2409
=========================================
Hits 18827 18827 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tests/test_l10n.py`:
- Around line 94-96: The assertion in tests/test_l10n.py currently only checks
truthiness of entry.comment, allowing whitespace-only strings to pass; change
the check to assert that entry.comment contains non-whitespace characters (e.g.,
use entry.comment.strip() in the assertion) so whitespace-only comments fail,
and keep the existing f"The {entity_code} {language} localization contains
missing comment " message for context; update any references to entry.comment in
the same test method to use .strip() where appropriate.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: a6bd3354-c134-4042-86a9-2a7ffe1f697d
📒 Files selected for processing (1)
tests/test_l10n.py
Proposed change
Update l10n test: check .po files for missing entries comments.
Type of change
holidaysfunctionality in general)Checklist
make checklocally; all checks and tests passed.