l.c.m.t.t.TestBranchMailerDiffMixin : class documentation

Part of lp.code.mail.tests.test_branch View In Hierarchy

Known subclasses: lp.code.mail.tests.test_branch.TestBranchMailerDiffBzr, lp.code.mail.tests.test_branch.TestBranchMailerDiffGit

Check the diff is an attachment.
Method makeBobMailController Undocumented
Method test_generateEmail_with_no_diff When there is no diff, no attachment should be included.
Method test_generateEmail_with_diff When there is a diff, it should be an attachment, not inline.
Method test_generateEmail_with_oversize_diff When the diff is oversize, don't attach, add reason.
Method test_generateEmail_with_subscription_no_diff When subscription forbids diffs, don't add reason.
def makeBobMailController(self, diff=None, max_lines=BranchSubscriptionDiffSize.WHOLEDIFF):
Undocumented
def test_generateEmail_with_no_diff(self):
When there is no diff, no attachment should be included.
def test_generateEmail_with_diff(self):
When there is a diff, it should be an attachment, not inline.
def test_generateEmail_with_oversize_diff(self):
When the diff is oversize, don't attach, add reason.
def test_generateEmail_with_subscription_no_diff(self):
When subscription forbids diffs, don't add reason.
API Documentation for Launchpad, generated by pydoctor at 2021-01-20 00:00:03.