Merge lp:~stevenk/launchpad/archive-empty-description-vocab into lp:launchpad
Proposed by
Steve Kowalik
on 2012-06-19
| Status: | Merged |
|---|---|
| Approved by: | Steve Kowalik on 2012-06-20 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 15452 |
| Proposed branch: | lp:~stevenk/launchpad/archive-empty-description-vocab |
| Merge into: | lp:launchpad |
| Diff against target: |
45 lines (+29/-1) 2 files modified
lib/lp/soyuz/tests/test_vocabularies.py (+28/-0) lib/lp/soyuz/vocabularies.py (+1/-1) |
| To merge this branch: | bzr merge lp:~stevenk/launchpad/archive-empty-description-vocab |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Ian Booth (community) | 2012-06-19 | Approve on 2012-06-20 | |
|
Review via email:
|
|||
Commit Message
Deal correctly with a PPA's description being the empty string rather than only unset in the PPA vocab.
Description of the Change
If a PPA's description is "" (IE, the empty string), rather than None, the PPA Vocab tosses an IndexError, which just results in an OOPS inside the picker, which is just awesome. Even more awesome, it seems to me that none of the Soyuz vocabs have any tests at all. I have added a test for this case, and fixed it.
To post a comment you must log in.

Looks ok. SHame about there being no other soyuz vocab test cases to add the new test to.