Merge lp:~jml/launchpad/use-testtools into lp:launchpad
Proposed by
Jonathan Lange
on 2010-01-01
| Status: | Merged |
|---|---|
| Approved by: | Jonathan Lange on 2010-01-11 |
| Approved revision: | not available |
| Merged at revision: | not available |
| Proposed branch: | lp:~jml/launchpad/use-testtools |
| Merge into: | lp:launchpad |
| Diff against target: |
596 lines (+59/-325) 10 files modified
lib/canonical/launchpad/testing/tests/test_testcase.py (+0/-163) lib/lp/codehosting/puller/tests/test_scheduler.py (+5/-0) lib/lp/registry/windmill/tests/test_add_milestone.py.disabled (+1/-0) lib/lp/registry/windmill/tests/test_datetime_picker.py (+1/-0) lib/lp/registry/windmill/tests/test_plusnew_step1.py (+1/-0) lib/lp/registry/windmill/tests/test_plusnew_step2.py (+1/-0) lib/lp/registry/windmill/tests/test_team_index.py (+1/-0) lib/lp/registry/windmill/tests/test_timeline_graph.py (+2/-0) lib/lp/testing/__init__.py (+46/-161) utilities/sourcedeps.conf (+1/-1) |
| To merge this branch: | bzr merge lp:~jml/launchpad/use-testtools |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Gary Poster (community) | 2010-01-01 | Approve on 2010-01-11 | |
| Aaron Bentley (community) | 2010-01-01 | Approve on 2010-01-04 | |
|
Review via email:
|
|||
Commit Message
Use testtools, really. Make it an egg, and delete all of the Launchpad code that duplicates testtools.
To post a comment you must log in.
| Jonathan Lange (jml) wrote : | # |
| Jonathan Lange (jml) wrote : | # |
I got over my fear & committed the tarball for testtools to download-cache, like this:
$ bzr st
added:
dist/
Testing now.
| Gary Poster (gary) wrote : | # |
You have some diff cruft problems visible in lines 193 through 201 of the diff as I see it right now. Other than that it looks good to me.
Gary
review:
Approve

This is a bit preliminary, because there are still XXX comments and I don't really know how to do this sort of thing, but it's worth getting feedback now.
This branch changes Launchpad to use a testtools release, rather than the branch. It then changes our base test case to inherit from testtools.TestCase rather than unittest.TestCase directly. This lets us delete a whole bunch of code.
While looking at lp/testing/ __init_ _.py, I noticed a few things that could be improved. The ones I could easily fix (like the duplicated code in 'assertRaisesWi thContent' ), I fixed. Others, I've marked with XXXs.
I haven't run the tests yet, partly since I'm afraid of committing the tarball for testtools to the download-cache.