Skip to content

Conversation

@FaizaJibril
Copy link
Contributor

  • Added branchIds: Optional[Iterable[int]] = None parameter
  • Updated method signature and request data
  • Added tests for the new parameter
  • Resolved validation error when calling apply_pre_translation
  • Fixed line length (E501)
  • Removed trailing whitespace
  • Fixed whitespace before parenthesis

…lation

- Added branchIds: Optional[Iterable[int]] = None parameter
- Updated method signature and request data
- Added comprehensive tests for the new parameter
- Maintains backward compatibility
- Resolves validation error when calling apply_pre_translation

Closes crowdin#211
- Added test for branchIds parameter handling
- Added edge case tests for empty lists and parameter combinations
- Improved test coverage from 47% to 98%
- Tests would have caught the missing branchIds bug
- Fixed line length (E501) by breaking long import
- Removed trailing whitespace (W293)
- Fixed whitespace before parenthesis (E202)
- All flake8 checks now pass
@andrii-bodnar andrii-bodnar linked an issue Aug 26, 2025 that may be closed by this pull request
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.36%. Comparing base (1734824) to head (d85ab65).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #213      +/-   ##
==========================================
+ Coverage   99.36%   99.36%   +0.01%     
==========================================
  Files         178      178              
  Lines        8042     8066      +24     
  Branches      183      184       +1     
==========================================
+ Hits         7990     8014      +24     
  Misses         37       37              
  Partials       15       15              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@andrii-bodnar andrii-bodnar left a comment

Choose a reason for hiding this comment

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

@FaizaJibril thank you!

@andrii-bodnar andrii-bodnar merged commit 36afa7b into crowdin:main Aug 26, 2025
7 checks passed
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.

apply_pre_translations is missing a required argument

3 participants