l.t.t.t.GardenerDbUserMixin(object) : class documentation

Part of lp.translations.tests.test_autoapproval View In Hierarchy

Known subclasses: lp.translations.tests.test_autoapproval.TestAutoApprovalNewPOFile, lp.translations.tests.test_autoapproval.TestCleanup, lp.translations.tests.test_autoapproval.TestGetPOFileFromLanguage, lp.translations.tests.test_autoapproval.TestGuessPOFileCustomLanguageCode, lp.translations.tests.test_autoapproval.TestKdePOFileGuess, lp.translations.tests.test_autoapproval.TestTemplateGuess

Switch to the translations import queue gardener database role.

Admittedly, this might be a little over-engineered but it looks good. ;)

Method becomeTheGardener One-way method to avoid unnecessary switch back.
Method beingTheGardener Context manager to restore the launchpad user.
def becomeTheGardener(self):
One-way method to avoid unnecessary switch back.
@contextmanager
def beingTheGardener(self):
Context manager to restore the launchpad user.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.