l.s.s.t.t.ArchiveExpiryCommonTests(object) : class documentation

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

Known subclasses: lp.soyuz.scripts.tests.test_expire_archive_files.TestPartnerExpiry, lp.soyuz.scripts.tests.test_expire_archive_files.TestPPAExpiry

Common source/binary expiration test cases.

These will be shared irrespective of archive type (ppa/partner).

Method testNoExpirationWithNoDateremoved Test that no expiring happens if no dateremoved set.
Method testNoExpirationWithDateUnderThreshold Test no expiring if dateremoved too recent.
Method testExpirationWithDateOverThreshold Test expiring works if dateremoved old enough.
Method testNoExpirationWithDateOverThresholdAndOtherValidPublication Test no expiry if dateremoved old enough but other publication.
Method testNoExpirationWithDateOverThresholdAndOtherPubUnderThreshold Test no expiring.
Method testNoExpirationWithDateOverThresholdAndOtherPubOverThreshold Test expiring works.
Method testDryRun Test that when dryrun is specified, nothing is expired.
Method testDoesNotAffectPrimary Test that expiry does not happen for non-PPA publications.
def testNoExpirationWithNoDateremoved(self):
Test that no expiring happens if no dateremoved set.
def testNoExpirationWithDateUnderThreshold(self):
Test no expiring if dateremoved too recent.
def testExpirationWithDateOverThreshold(self):
Test expiring works if dateremoved old enough.
def testNoExpirationWithDateOverThresholdAndOtherValidPublication(self):
Test no expiry if dateremoved old enough but other publication.
def testNoExpirationWithDateOverThresholdAndOtherPubUnderThreshold(self):
Test no expiring.

Test no expiring if dateremoved old enough but other publication not over date threshold.

def testNoExpirationWithDateOverThresholdAndOtherPubOverThreshold(self):
Test expiring works.

Test expiring works if dateremoved old enough and other publication is over date threshold.

def testDryRun(self):
Test that when dryrun is specified, nothing is expired.
def testDoesNotAffectPrimary(self):
Test that expiry does not happen for non-PPA publications.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.