l.c.t.codeimporthelpers : module documentation

Part of lp.code.tests

Helpers for Code Import page tests.
Function get_import_for_branch_name Return the code import associated with the branch.
Function make_running_import Return a code import with a running job.
Function make_finished_import Return a code import with a new finished job.
Function make_all_result_types Make a code import result of each possible type for the code import.
def get_import_for_branch_name(branch_unique_name):
Return the code import associated with the branch.
def make_running_import(code_import=None, machine=None, date_started=None, factory=None, logtail=None):
Return a code import with a running job.
Parameterscode_importThe code import to create the job for. If None, an anonymous CodeImport is created.
machineThe CodeImportMachine to associate with the running job. If None, an anonymous CodeImportMachine is created.
date_startedIf specified this overrides the UTC_NOW timestamp of the newly started job.
factoryThe LaunchpadObjectFactory to use for the creation of the objects. If None, one is created.
logtailAn optional string to put in the logtail field of the job.
def make_finished_import(code_import=None, status=None, date_finished=None, factory=None):
Return a code import with a new finished job.
Parameterscode_importThe code import to create the job for. If None, an anonymous CodeImport is created.
statusThe result status. If not specified it is set to SUCCESSFUL.
date_finishedIf specified this overrides the date_last_successful attribute of the code_import if the state is SUCCESSFUL.
factoryThe LaunchpadObjectFactory to use for the creation of the objects. If None, one is created.
def make_all_result_types(code_import, factory, machine, start, count):
Make a code import result of each possible type for the code import.
API Documentation for Launchpad, generated by pydoctor at 2018-02-25 00:00:04.