Merge lp:~stevenk/launchpad/preview-diff-none-type into lp:launchpad
Proposed by
Steve Kowalik
Status: | Merged |
---|---|
Approved by: | Steve Kowalik |
Approved revision: | no longer in the source branch. |
Merged at revision: | 16062 |
Proposed branch: | lp:~stevenk/launchpad/preview-diff-none-type |
Merge into: | lp:launchpad |
Diff against target: |
123 lines (+23/-25) 3 files modified
lib/lp/code/interfaces/diff.py (+0/-2) lib/lp/code/model/tests/test_branchmergeproposal.py (+22/-22) versions.cfg (+1/-1) |
To merge this branch: | bzr merge lp:~stevenk/launchpad/preview-diff-none-type |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ian Booth (community) | Approve | ||
Review via email: mp+126601@code.launchpad.net |
Commit message
Update lazr.restful to 0.19.8, and add a test for fetching a NULL preview_diff of an BMP over the API.
Description of the change
IDiff.diffstat is exported as Dict(), so lazr.restful attempts to unmarshall it as so. This would be fine, except when the column in the DB is NULL and the method returns None. Update to lazr.restful 0.19.8 solving the failure.
I have clawed back the LoC by some refactoring of the tests and removing the now unneeded pylint garbage.
To post a comment you must log in.
Looks great