Merge lp:~wgrant/launchpad/better-publisher-index-tests into lp:launchpad
Proposed by
William Grant
on 2010-10-14
| Status: | Merged |
|---|---|
| Approved by: | Brad Crittenden on 2010-10-15 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 11727 |
| Proposed branch: | lp:~wgrant/launchpad/better-publisher-index-tests |
| Merge into: | lp:launchpad |
| Diff against target: |
214 lines (+110/-67) 1 file modified
lib/lp/archivepublisher/tests/test_publisher.py (+110/-67) |
| To merge this branch: | bzr merge lp:~wgrant/launchpad/better-publisher-index-tests |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Brad Crittenden (community) | code | 2010-10-14 | Approve on 2010-10-15 |
|
Review via email:
|
|||
Commit Message
Start de-duplicating the apt-ftparchive and native publishing tests, and add more thorough index generation tests.
Description of the Change
Soyuz's two index publication methods (apt-ftparchive and native) perform the same function, so logically should share tests. This branch starts to reduce duplication in test_publisher by running the same tests over both methods.
It also adds a new test that more thoroughly verifies that the right indices are created.
To post a comment you must log in.

Hi William,
Thanks for this branch.
As we discussed on IRC, in TestArchiveIndices you created two new methods that have default values of '[]'. Since you make the claim you never mutate them please change to be an empty tuple to enforce it.
Otherwise it looks fine.