l.t.t.t.FakeTranslationTemplatesJobSource(TranslationTemplatesBuildJob) : class documentation

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

Fake utility class.

Allows overriding of _hasPotteryCompatibleSetup.

How do you fake a utility that is implemented as a class, not a factory? By inheriting from TranslationTemplatesJob, this class "copies" the utility. But you can make it fake the utility's behavior by setting an attribute of the class (not an object!) at the beginning of every test.

Class Method _hasPotteryCompatibleSetup Does branch look as if pottery can generate templates for it?

Inherited from TranslationTemplatesBuildJob:

Method __init__ Ensure the instance to which we delegate is set on creation.
Method score See IBuildFarmJob.
Method getLogFileName See IBuildFarmJob.
Method getName See IBuildFarmJob.
Method getTitle See IBuildFarmJob.
Method cleanUp See IBuildFarmJob.
Class Method generatesTemplates See ITranslationTemplatesBuildJobSource.
Class Method create See ITranslationTemplatesBuildJobSource.
Class Method scheduleTranslationTemplatesBuild See ITranslationTemplatesBuildJobSource.
Class Method getByJob See IBuildFarmJob.
Class Method getByBranch See ITranslationTemplatesBuildJobSource.
Method _set_build_farm_job Setup the IBuildFarmJob delegate.
Class Method _getBuildArch Returns an IProcessor to queue a translation build for.

Inherited from BuildFarmJobOldDerived (via TranslationTemplatesBuildJob):

Method __storm_loaded__ Set the attribute for our IBuildFarmJob delegation.
Method generateSlaveBuildCookie See IBuildFarmJobOld.
Static Method addCandidateSelectionCriteria See IBuildFarmJobOld.
Static Method postprocessCandidate See IBuildFarmJobOld.

Inherited from BranchJobDerived (via TranslationTemplatesBuildJob):

Method __repr__ Undocumented
Method __eq__ Undocumented
Method __ne__ Undocumented
Class Method iterReady See IRevisionMailJobSource.
Method getOopsVars See IRunnableJob.

Inherited from BaseRunnableJob (via TranslationTemplatesBuildJob, BranchJobDerived):

Method getOopsRecipients Return a list of email-ids to notify about oopses.
Method getOperationDescription Undocumented
Method getErrorRecipients Return a list of email-ids to notify about user errors.
Method getOopsMailController Return a MailController for notifying people about oopses.
Method getUserErrorMailController Return a MailController for notifying about user errors.
Method notifyOops Report this oops.
Method notifyUserError See IRunnableJob.
Static Method contextManager Undocumented
@classmethod
def _hasPotteryCompatibleSetup(cls, branch):
Does branch look as if pottery can generate templates for it?
ParametersbranchA Branch object.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.