l.r.s.t.t.FactoryHelper : class documentation

Part of lp.registry.scripts.tests.test_populate_distroseriesdiff View In Hierarchy

Known subclasses: lp.registry.scripts.tests.test_populate_distroseriesdiff.TestFindDerivedSeries, lp.registry.scripts.tests.test_populate_distroseriesdiff.TestFindDifferences, lp.registry.scripts.tests.test_populate_distroseriesdiff.TestFindLatestSourcePackageReleases, lp.registry.scripts.tests.test_populate_distroseriesdiff.TestPopulateDistroSeriesDiff, lp.registry.scripts.tests.test_populate_distroseriesdiff.TestPopulateDistroSeriesDiffScript

Some helper methods for making stuff that only make sense here.
Method getArchive Get an existing Archive, or create one.
Method makeSPPH Create a SourcePackagePublishingHistory for derivation.
Method makeDerivedDistroSeries Create a DistroSeries that's derived from another distro.
Method getDistroSeriesDiff Find the DistroSeriesDifference records for distroseries.
def getArchive(self, distribution, purpose):
Get an existing Archive, or create one.
def makeSPPH(self, distroseries=None, archive_purpose=None, pocket=PackagePublishingPocket.RELEASE, status=None, sourcepackagerelease=None):
Create a SourcePackagePublishingHistory for derivation.

Has slightly different defaults from the LaunchpadObjectFactory method for this, so that the SPPH will be picked up as a DistroSeriesDifference.

def makeDerivedDistroSeries(self):
Create a DistroSeries that's derived from another distro.
def getDistroSeriesDiff(self, distroseries):
Find the DistroSeriesDifference records for distroseries.
API Documentation for Launchpad, generated by pydoctor at 2019-08-22 00:00:19.