Merge lp:~michael.nelson/launchpad/include-binary-size into lp:launchpad
Proposed by
Michael Nelson
Status: | Merged |
---|---|
Merged at revision: | 16515 |
Proposed branch: | lp:~michael.nelson/launchpad/include-binary-size |
Merge into: | lp:launchpad |
Diff against target: |
218 lines (+102/-37) 4 files modified
lib/lp/soyuz/browser/tests/test_publishing_webservice.py (+40/-7) lib/lp/soyuz/interfaces/publishing.py (+5/-1) lib/lp/soyuz/model/publishing.py (+8/-1) lib/lp/soyuz/tests/test_publishing_models.py (+49/-28) |
To merge this branch: | bzr merge lp:~michael.nelson/launchpad/include-binary-size |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
William Grant | code | Approve | |
Launchpad code reviewers | Pending | ||
Review via email: mp+150831@code.launchpad.net |
Commit message
Add optional include_sizes kwarg to BinaryPackagePu
Description of the change
Add an optional include_sizes kwarg option to BPPH.binaryFile
Brief pre-imp with wgrant discussed on bug 1088527.
./bin/test -vvct TestBinaryPacka
I'll start the full test run on my instance.
To post a comment you must log in.
18 bpph_url = api_url(bpph)
19 +
20 + return bpph_url
I would just do
18 return api_url(bpph)
and skip the temporary variable and spurious VWS.
Line 27 has more spurious VWS. As does 33. I'll stop listing the spurious VWS here :). Please imagine it throughout the rest of the diff.
36 + self.assertEqual(1, len(urls)) (type(urls[ 0]) == unicode) assertThat( urls, HasLength(1)) assertThat( urls[0] , IsInstance( unicode) )
37 + self.assertTrue
Would be better as
self.
self.
ditto at 51
Other than that it looks ok to me.