l.s.t.s.SoyuzTestHelper : class documentation

Part of lp.soyuz.tests.soyuz View In Hierarchy

Helper class to support easier tests in Soyuz component.
Method __init__ Undocumented
Method sample_publishing_data Return a list of triples as (status, archive, pocket).
Method createPublishingForDistroSeries Return a list of SourcePackagePublishingHistory.
Method checkPubList Check if the given publication list matches the expected one.
def __init__(self):
Undocumented
@property
def sample_publishing_data(self):

Return a list of triples as (status, archive, pocket).

Returns the following triples (in this order):

  1. ubuntu/PRIMARY, PENDING, RELEASE;
  2. ubuntu/PRIMARY, PUBLISHED, RELEASE;
  3. ubuntu/PRIMARY, PENDING, UPDATES;
  4. ubuntu/PRIMARY, PUBLISHED, PROPOSED;
  5. ubuntu/cprov PPA, PENDING, RELEASE;
  6. ubuntu/cprov PPA, PUBLISHED, RELEASE;
  7. ubuntu/cprov PPA, PENDING, UPDATES;
  8. ubuntu/cprov PPA, PUBLISHED, PROPOSED;
def createPublishingForDistroSeries(self, sourcepackagerelease, distroseries):
Return a list of SourcePackagePublishingHistory.

The publishing records are created according to the given SourcePackageRelease and DistroSeries for all (status, archive, pocket) returned from sample_publishing_data.

def checkPubList(self, expected, given):
Check if the given publication list matches the expected one.

Return True if the lists matches, otherwise False.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.