Launchpad does not have a sensible unittest framework
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Low
|
Unassigned |
Bug Description
WebserverHelper (in lib/canonical/
SandboxHelper always uses the same sandbox directory: ",,job_test". Tests ought to be independent from each other, even if a previous test didn't run its tearDown because it failed. A much better approach would be make and use a new temporary directory each time (and with a directory name that is more helpful than ",,job_test").
Also, SandboxHelper mucks with os.environ['HOME'], which is important for some tests, but irrelevant for most. It certainly is irrelevant to WebserverHelper.
Finally, canonical.
Changed in launchpad-foundations: | |
status: | Triaged → Fix Released |
Yes.
I would be glad to spend some time working on collecting the various reusable test helpers I have written over time into a single place.
Just get agreement on what should be this place, and then we can start discuss the specifics of what to put there and what to fix.