Merge lp:~thumper/launchpad/send-mail-job-logging into lp:launchpad
Proposed by
Tim Penhey
Status: | Merged |
---|---|
Approved by: | Tim Penhey |
Approved revision: | no longer in the source branch. |
Merged at revision: | 10923 |
Proposed branch: | lp:~thumper/launchpad/send-mail-job-logging |
Merge into: | lp:launchpad |
Diff against target: |
59 lines (+25/-1) 2 files modified
lib/lp/code/model/branchjob.py (+14/-0) lib/lp/code/model/tests/test_branchjob.py (+11/-1) |
To merge this branch: | bzr merge lp:~thumper/launchpad/send-mail-job-logging |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Hudson-Doyle | Approve | ||
Review via email: mp+25939@code.launchpad.net |
Commit message
Provide a repr method for derived branch job.
Description of the change
Add a repr method for the derived branch jobs. This will be emitted in the log files by the job runner class at the DEBUG level. This will help a lot with the debugging of branch job related issues (like bug 585126).
tests:
TestRevisionM
To post a comment you must log in.
Argh, fixed the docstrings.
=== modified file 'lib/lp/ code/model/ tests/test_ branchjob. py' code/model/ tests/test_ branchjob. py 2010-05-25 05:10:57 +0000 code/model/ tests/test_ branchjob. py 2010-05-25 05:19:13 +0000 ssLayer
--- lib/lp/
+++ lib/lp/
@@ -303,14 +303,14 @@
layer = LaunchpadZopele
def test_providesIn terface( self): b.""" makeAnyBranch( ) .create(
branch, 0, '<email address hidden>', 'hello', False, 'subject')
verifyObject( IRevisionMailJo b, job)
- """Ensure that BranchDiffJob implements IBranchDiffJob."""
+ """Ensure that RevisionMailJob implements IRevisionMailJo
branch = self.factory.
job = RevisionMailJob
def test_repr(self): makeAnyBranch( ) .create(
branch, 0, '<email address hidden>', 'hello', False, 'subject')
- """Ensure that BranchDiffJob implements IBranchDiffJob."""
+ """Ensure that the revision mail job as a reasonable repr."""
branch = self.factory.
job = RevisionMailJob