l.t.t.t.ReviewTestMixin : class documentation

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

Known subclasses: lp.translations.tests.test_translations_to_review.TestReviewableDistroTranslationFiles, lp.translations.tests.test_translations_to_review.TestReviewableProductTranslationFiles

Base for testing which translations a reviewer can review.
Method setUpMixin Set up test environment.
Method _getReviewables Shorthand for self.person.getReviewableTranslationFiles.
def setUpMixin(self, for_product=True):
Set up test environment.

Sets up a person, as well as a translation that that person is a reviewer for and has contributed to.

If for_product is true, the translation will be for a product. Otherwise, it will be for a distribution.

def _getReviewables(self, *args, **kwargs):
Shorthand for self.person.getReviewableTranslationFiles.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.