Merge lp:~bac/launchpad/bug-682772 into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Gary Poster |
Approved revision: | no longer in the source branch. |
Merged at revision: | 15411 |
Proposed branch: | lp:~bac/launchpad/bug-682772 |
Merge into: | lp:launchpad |
Diff against target: |
578 lines (+116/-86) 18 files modified
lib/lp/answers/tests/test_doc.py (+6/-3) lib/lp/bugs/tests/test_bugcontact.py (+5/-1) lib/lp/bugs/tests/test_buglinktarget.py (+5/-3) lib/lp/bugs/tests/test_bugtarget.py (+5/-1) lib/lp/bugs/tests/test_doc.py (+13/-2) lib/lp/bugs/tests/test_structuralsubscriptiontarget.py (+5/-1) lib/lp/coop/answersbugs/tests/test_doc.py (+14/-13) lib/lp/registry/tests/test_distribution.py (+4/-3) lib/lp/registry/tests/test_distroseries.py (+27/-15) lib/lp/registry/tests/test_doc.py (+3/-0) lib/lp/services/verification/browser/tests/test_logintoken_corner_cases.py (+0/-25) lib/lp/services/webservice/tests/test_doc.py (+2/-1) lib/lp/soyuz/tests/test_doc.py (+1/-0) lib/lp/testing/pages.py (+4/-3) lib/lp/testing/systemdocs.py (+14/-11) lib/lp/testing/tests/test_inlinetests.py (+1/-1) lib/lp/testing/tests/test_systemdocs.py (+2/-2) versions.cfg (+5/-1) |
To merge this branch: | bzr merge lp:~bac/launchpad/bug-682772 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gary Poster (community) | Approve | ||
Review via email: mp+108983@code.launchpad.net |
Commit message
Make all tests have a unique id.
Description of the change
= Summary =
Correct doctests that are reused with the same id.
Fix the LayeredDoctFile
is used to augment the filenames into new ids in order to make them
unique.
Note that nothing currently ensure the tests are unique as it is a
volunteer effort. See the companion bug 682771 for that effort.
Also fixed a pair of unit tests that were run multiple times due to
the base class being discovered upon import.
== Pre-implementation notes ==
Talks with Gary.
== Implementation details ==
As above.
== Tests ==
== Demo and Q/A ==
Downloading this file http://
finddups.py, run...
bin/test --list > list.out; python finddups.py > dups.txt
...and ensure there are not dupes. Well, there is the
twisted/.../runTest dupe but that one is being ignored as beyond the
scope of this change.
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/
versions.cfg
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
Cool, thank you.
I asked about whether id_extensions ought to be id_extension, since you only ever provide one, but you gave me a compelling case in which this would be reasonable ("if someone called the factory with multiple paths then there would need to a 1:1 correspondence to id_extensions") so I'm fine with it.