Merge lp:~jtv/launchpad/cp-bug-409465 into lp:launchpad
Proposed by
Jeroen T. Vermeulen
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~jtv/launchpad/cp-bug-409465 |
Merge into: | lp:launchpad |
Diff against target: | None lines |
To merge this branch: | bzr merge lp:~jtv/launchpad/cp-bug-409465 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Данило Шеган (community) | Approve | ||
Review via email: mp+9763@code.launchpad.net |
To post a comment you must log in.
= Bug 409465 =
This branch is for cherry-picking.
The translation uploads auto-approver was crashing when certain uploads
were waiting to be approved: translation files for disabled templates in
projects (not distributions) where the path for the translation file did
not match any existing POFile's path.
See the bug report for a more detailed analysis. This branch presents a
very minimal fix to prevent regressions, and adds a unit test. The test
establishes that the normal approval case succeeds, and that the problem
case fails as it should (as opposed to breaking completely).
To test:
{{{
./bin/test -vv -t autoapproval
}}}
For Q/A, read error-reports and see that the error does not return. The
test faithfully reproduces the error on an unpatched branch.
I considered updating the existing test cases in the test file I edited tory, but... not in a cherrypicking branch!
to use TestCaseWithFac
No lint complaints.
Jeroen