Merge lp:~michael.nelson/launchpad/494391-ugly-upload-error-message into lp:launchpad
Proposed by
Michael Nelson
on 2010-02-08
| Status: | Merged |
|---|---|
| Approved by: | Michael Nelson on 2010-02-08 |
| Approved revision: | not available |
| Merged at revision: | not available |
| Proposed branch: | lp:~michael.nelson/launchpad/494391-ugly-upload-error-message |
| Merge into: | lp:launchpad |
| Diff against target: |
72 lines (+33/-4) 2 files modified
lib/lp/archiveuploader/tests/test_permission.py (+0/-4) lib/lp/archiveuploader/tests/test_uploadprocessor.py (+33/-0) |
| To merge this branch: | bzr merge lp:~michael.nelson/launchpad/494391-ugly-upload-error-message |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Henning Eggers (community) | code | 2010-02-08 | Approve on 2010-02-08 |
|
Review via email:
|
|||
Commit Message
Ensure that uploads to invalid pockets are reported correctly in the rejection email.
To post a comment you must log in.
| Michael Nelson (michael.nelson) wrote : | # |
| Henning Eggers (henninge) wrote : | # |
Thanks you for your branch.
Please find another way to word the comment on the test, as these should never state the obvious "Test that ...", "Ensure that ..." etc. Simply "Uploads to the wrong pocket are rejected." is enough. Also, I found it's customary not to use docstrings ("""....""") but comments (# ...) here.
review:
Approve
(code)

This fix for this branch actually landed with:
https:/ /code.edge. launchpad. net/~michael. nelson/ launchpad/ create- source- recipe- build2/ +merge/ 18535
as part of a cleanup (see lines 16-33 of the MP diff), but wasn't tested.
This branch just adds a test to ensure the exception is correctly printed in the email (as per bug 494391).
Small drive-by removing some redundant test-code and old lint.