l.c.b.t.t.TestSourcePackageRecipeBuildViewMixin : class documentation

Part of lp.code.browser.tests.test_sourcepackagerecipe View In Hierarchy

Known subclasses: lp.code.browser.tests.test_sourcepackagerecipe.TestSourcePackageRecipeBuildViewBzr, lp.code.browser.tests.test_sourcepackagerecipe.TestSourcePackageRecipeBuildViewGit

Test behaviour of SourcePackageRecipeBuildView.
Method setUp Provide useful defaults.
Method makeBuild Make a build suitable for testing.
Method makeBuildView Return a view of a build suitable for testing.
Method test_estimate Time should be estimated until the job is completed.
Method test_eta ETA should be reasonable.
Method getBuildBrowser Return a browser for the specified build, opened as owner.
Method test_render_index Test the basic index page.
Method test_render_index_completed Test the index page of a completed build.
Method makeBuildAndRelease Make a build and release suitable for testing.
Method makeBinaryBuild Make a binary build with specified release and architecturetag.
Method test_render_binary_builds BinaryBuilds for this source build are shown if they exist.
Method test_logtail Logtail is shown for BUILDING builds.
Method getMainText Return the main text of a view's web page.
Method test_buildlog A link to the build log is shown if available.
Method test_uploadlog A link to the upload log is shown if available.
def setUp(self):
Provide useful defaults.
def makeBuild(self):
Make a build suitable for testing.
def makeBuildView(self):
Return a view of a build suitable for testing.
def test_estimate(self):
Time should be estimated until the job is completed.
def test_eta(self):
ETA should be reasonable.

It should be None if there is no builder or queue entry. It should be getEstimatedJobStartTime + estimated duration for jobs that have not started. It should be bq.date_started + estimated duration for jobs that have started.

def getBuildBrowser(self, build, view_name=None):
Return a browser for the specified build, opened as owner.
def test_render_index(self):
Test the basic index page.
def test_render_index_completed(self):
Test the index page of a completed build.
def makeBuildAndRelease(self):
Make a build and release suitable for testing.
def makeBinaryBuild(self, release, architecturetag):
Make a binary build with specified release and architecturetag.
def test_render_binary_builds(self):
BinaryBuilds for this source build are shown if they exist.
def test_logtail(self):
Logtail is shown for BUILDING builds.
def getMainText(self, build, view_name=None):
Return the main text of a view's web page.
def test_buildlog(self):
A link to the build log is shown if available.
def test_uploadlog(self):
A link to the upload log is shown if available.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.