Merge lp://staging/~rockstar/launchpad/recipe-no-signer into lp://staging/launchpad
Proposed by
Paul Hummer
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 11258 | ||||
Proposed branch: | lp://staging/~rockstar/launchpad/recipe-no-signer | ||||
Merge into: | lp://staging/launchpad | ||||
Diff against target: |
153 lines (+55/-8) 5 files modified
lib/lp/soyuz/interfaces/sourcepackagerelease.py (+4/-2) lib/lp/soyuz/model/sourcepackagerelease.py (+9/-1) lib/lp/soyuz/templates/archive-index.pt (+1/-1) lib/lp/soyuz/tests/test_sourcepackagerelease.py (+32/-0) lib/lp/testing/factory.py (+9/-4) |
||||
To merge this branch: | bzr merge lp://staging/~rockstar/launchpad/recipe-no-signer | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tim Penhey (community) | conditional | Approve | |
Review via email: mp+31339@code.staging.launchpad.net |
Description of the change
This branch just creates a SourcePackageRe
To post a comment you must log in.
Test case in lib/lp/ soyuz/tests/ test_sourcepack agerelease. py is missing a lot
of docstrings.
> def test_uploader_ no_uploader( self):
You shouldn't test for equality to None, use assertIs instead. assertIs( None, spr.uploader)
self.
Also don't split the lines if they don't need it.
> def test_uploader_ dsc_package( self):
Instead of testing against spr.dscsigningk ey.owner, just use 'owner' as you
created it in the test. It makes the test more obvious.
self. assertEqual( owner, spr.uploader)
> def test_uploader_ recipe( self):
Keep the assertEqual on one line.
Thanks for the other lint cleanup.