l.c.c.t.t.TestActualImportMixin : class documentation

Part of lp.codehosting.codeimport.tests.test_worker View In Hierarchy

Known subclasses: lp.codehosting.codeimport.tests.test_worker.CSCVSActualImportMixin, lp.codehosting.codeimport.tests.test_worker.TestBzrImport, lp.codehosting.codeimport.tests.test_worker.TestBzrSvnImport, lp.codehosting.codeimport.tests.test_worker.TestGitImport

Mixin for tests that check the actual importing.
Method setUpImport Set up the objects required for an import.
Method makeImportWorker Make a new ImportWorker.
Method makeForeignCommit Commit a revision to the repo described by self.source_details.
Method makeWorkerArguments Make a list of worker arguments pointing to a real repository.
Method makeSourceDetails Make a CodeImportSourceDetails pointing to a real repository.
Method getStoredBazaarBranch Get the Bazaar branch 'worker' stored into its BazaarBranchStore.
Method clearCaches Clear any caches between worker runs, if necessary.
Method test_import Undocumented
Method test_sync Undocumented
Method test_import_script Undocumented
Method test_script_exit_codes Undocumented
def setUpImport(self):
Set up the objects required for an import.

This means a BazaarBranchStore, CodeImport and a CodeImportJob.

def makeImportWorker(self, source_details, opener_policy):
Make a new ImportWorker.

Override this in your subclass.

def makeForeignCommit(self, source_details):
Commit a revision to the repo described by self.source_details.

Increment self.foreign_commit_count as appropriate.

Override this in your subclass.

def makeWorkerArguments(self, module_name, files, stacked_on_url=None):
Make a list of worker arguments pointing to a real repository.

This should set self.foreign_commit_count to an appropriate value.

Override this in your subclass.

def makeSourceDetails(self, module_name, files, stacked_on_url=None):
Make a CodeImportSourceDetails pointing to a real repository.
def getStoredBazaarBranch(self, worker):
Get the Bazaar branch 'worker' stored into its BazaarBranchStore.
def clearCaches(self):
Clear any caches between worker runs, if necessary.

Override this in your subclass if you need it.

def test_import(self):
Undocumented
def test_sync(self):
Undocumented
def test_import_script(self):
Undocumented
def test_script_exit_codes(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.