l.s.s.t.t.CopyCheckerHarness : class documentation

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

Known subclasses: lp.soyuz.scripts.tests.test_copypackage.CopyCheckerDifferentArchiveHarness, lp.soyuz.scripts.tests.test_copypackage.CopyCheckerQueries, lp.soyuz.scripts.tests.test_copypackage.CopyCheckerSameArchiveHarness

Basic checks common for all scenarios.
Method assertCanCopySourceOnly Source-only copy is allowed.
Method assertCanCopyBinaries Source and binary copy is allowed.
Method assertCannotCopySourceOnly CopyChecker.checkCopy() for source-only copy raises CannotCopy.
Method assertCannotCopyBinaries CopyChecker.checkCopy() including binaries raises CannotCopy.
Method test_cannot_copy_binaries_from_building Undocumented
Method test_cannot_copy_check_perm_no_person Undocumented
Method test_cannot_copy_binaries_from_FTBFS Undocumented
Method test_can_copy_only_source_from_FTBFS Undocumented
Method test_cannot_copy_binaries_from_binaries_pending_publication Undocumented
Method test_can_copy_binaries_from_fullybuilt_and_published Undocumented
def assertCanCopySourceOnly(self, **kwargs):

Source-only copy is allowed.

Initialize a CopyChecker and assert a checkCopy call returns None (more importantly, doesn't raise CannotCopy) in the test suite context.

Also assert that:
  • 1 'CheckedCopy' was allowed and stored as so.
  • Since it was source-only, the CheckedCopy objects is in NEEDSBUILD state.
def assertCanCopyBinaries(self, **kwargs):

Source and binary copy is allowed.

Initialize a CopyChecker and assert a checkCopy call returns None (more importantly, doesn't raise CannotCopy) in the test suite context.

Also assert that:
  • 1 'CheckedCopy' was allowed and stored as so.
  • The CheckedCopy objects is in FULLYBUILT_PENDING or FULLYBUILT status, so there are binaries to be copied.
def assertCannotCopySourceOnly(self, msg, person=None, check_permissions=False, **kwargs):
CopyChecker.checkCopy() for source-only copy raises CannotCopy.

No CheckedCopy is stored.

def assertCannotCopyBinaries(self, msg, **kwargs):
CopyChecker.checkCopy() including binaries raises CannotCopy.

No CheckedCopy is stored.

def test_cannot_copy_binaries_from_building(self):
Undocumented
def test_cannot_copy_check_perm_no_person(self):
Undocumented
def test_cannot_copy_binaries_from_FTBFS(self):
Undocumented
def test_can_copy_only_source_from_FTBFS(self):
Undocumented
def test_cannot_copy_binaries_from_binaries_pending_publication(self):
Undocumented
def test_can_copy_binaries_from_fullybuilt_and_published(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2020-02-18 00:00:14.