l.c.m.t.t.TestSourcePackageRecipeBuild(TestCaseWithFactory) : class documentation

Part of lp.code.model.tests.test_sourcepackagerecipebuild View In Hierarchy

Test the source package build object.
Method makeSourcePackageRecipeBuild Create a SourcePackageRecipeBuild for testing.
Method test_providesInterfaces Undocumented
Method test_implements_interface Undocumented
Method test_saves_record Undocumented
Method test_queueBuild Undocumented
Method test_title Undocumented
Method test_distribution Undocumented
Method test_current_component Undocumented
Method test_is_private Undocumented
Method test_view_private_branch Recipebuilds with private branches are restricted.
Method test_view_private_archive Recipebuilds with private branches are restricted.
Method test_estimateDuration Undocumented
Method test_build_cookie Undocumented
Method test_getFileByName getFileByName returns the logs when requested by name.
Method test_binary_builds The binary_builds property should be populated automatically.
Method test_manifest Manifest should start empty, but accept SourcePackageRecipeData.
Method test_makeDailyBuilds Undocumented
Method test_makeDailyBuilds_skips_missing_archive When creating daily builds, skip ones that are already pending.
Method test_makeDailyBuilds_logs_builds Undocumented
Method test_makeDailyBuilds_clears_is_stale Undocumented
Method test_makeDailyBuilds_skips_if_built_in_last_24_hours Undocumented
Method test_makeDailyBuilds_skips_non_stale_builds Undocumented
Method test_makeDailyBuilds_skips_builds_already_queued Undocumented
Method test_makeDailyBuilds_skips_disabled_archive Undocumented
Method test_makeDailyBuilds_skips_archive_with_no_permission Undocumented
Method test_makeDailyBuilds_with_an_older_build Undocumented
Method test_makeDailyBuilds_with_an_older_and_newer_build Undocumented
Method test_makeDailyBuilds_with_new_build_different_archive Undocumented
Method test_makeDailyBuilds_with_disallowed_series Undocumented
Method test_destroySelf Undocumented
Method test_destroySelf_clears_release Undocumented
Method test_destroySelf_destroys_referenced Undocumented
Method test_cancel Undocumented
Method test_getUploader Undocumented
Method test_getByBuildFarmJob Undocumented
Method test_getByBuildFarmJobs Undocumented
Method test_getByBuildFarmJobs_empty Undocumented

Inherited from TestCaseWithFactory:

Method setUp Undocumented
Method getUserBrowser Return a Browser logged in as a fresh user, maybe opened at url.
Method getNonRedirectingBrowser Undocumented
Method createBranchAtURL Create a branch at the supplied URL.
Method create_branch_and_tree Create a database branch, bzr branch and bzr checkout.
Method createBzrBranch Create a bzr branch for a database branch.
Static Method getBranchPath Return the path of the branch in the mirrored area.
Method useTempBzrHome Undocumented
Method useBzrBranches Prepare for using bzr branches.

Inherited from TestCase (via TestCaseWithFactory):

Method becomeDbUser Commit, then log into the database as dbuser.
Method __str__ The string representation of a test is its id.
Method useContext Use the supplied context in this test.
Method makeTemporaryDirectory Create a temporary directory, and return its path.
Method installKarmaRecorder Set up and return a KarmaRecorder.
Method assertProvides Assert 'obj' correctly provides 'interface'.
Method assertNotifies Assert that a callable performs a given notification.
Method assertNoNotification Assert that no notifications are generated by the callable.
Method assertSqlAttributeEqualsDate Fail unless the value of the attribute is equal to the date.
Method assertTextMatchesExpressionIgnoreWhitespace Undocumented
Method assertIsInstance Assert that an instance is an instance of assert_class.
Method assertIsNot Assert that expected is not the same object as observed.
Method assertContentEqual Assert that 'iter1' has the same content as 'iter2'.
Method assertRaisesWithContent Check if the given exception is raised with given content.
Method assertBetween Assert that 'variable' is strictly between two boundaries.
Method assertVectorEqual Apply assertEqual to all given pairs in one go.
Method expectedLog Expect a log to be written that matches the regex.
Method pushConfig Push some key-value pairs into a section of the config.
Method attachOopses Undocumented
Method attachLibrarianLog Include the logChunks from fixture in the test details.
Method assertStatementCount Assert that the expected number of SQL statements occurred.
Method useTempDir Use a temporary directory for this test.
Method assertEmailHeadersEqual Assert that two email headers are equal.
Method assertStartsWith Undocumented
Method assertEndsWith Asserts that s ends with suffix.
Method checkPermissions Check if the used_permissions match expected_permissions.
Method assertEmailQueueLength Pop the email queue, assert its length, and return it.
Method _unfoldEmailHeader Unfold a multiline email header.
def makeSourcePackageRecipeBuild(self, archive=None):
Create a SourcePackageRecipeBuild for testing.
def test_providesInterfaces(self):
def test_implements_interface(self):
def test_saves_record(self):
def test_queueBuild(self):
def test_title(self):
def test_distribution(self):
def test_current_component(self):
def test_is_private(self):
def test_view_private_branch(self):
Recipebuilds with private branches are restricted.
def test_view_private_archive(self):
Recipebuilds with private branches are restricted.
def test_estimateDuration(self):
def test_build_cookie(self):
def test_getFileByName(self):
getFileByName returns the logs when requested by name.
def test_binary_builds(self):
The binary_builds property should be populated automatically.
def test_manifest(self):
Manifest should start empty, but accept SourcePackageRecipeData.
def test_makeDailyBuilds(self):
def test_makeDailyBuilds_skips_missing_archive(self):
When creating daily builds, skip ones that are already pending.
def test_makeDailyBuilds_logs_builds(self):
def test_makeDailyBuilds_clears_is_stale(self):
def test_makeDailyBuilds_skips_if_built_in_last_24_hours(self):
def test_makeDailyBuilds_skips_non_stale_builds(self):
def test_makeDailyBuilds_skips_builds_already_queued(self):
def test_makeDailyBuilds_skips_disabled_archive(self):
def test_makeDailyBuilds_skips_archive_with_no_permission(self):
def test_makeDailyBuilds_with_an_older_build(self):
def test_makeDailyBuilds_with_an_older_and_newer_build(self):
def test_makeDailyBuilds_with_new_build_different_archive(self):
def test_makeDailyBuilds_with_disallowed_series(self):
def test_destroySelf(self):
def test_destroySelf_clears_release(self):
def test_destroySelf_destroys_referenced(self):
def test_cancel(self):
def test_getUploader(self):
def test_getByBuildFarmJob(self):
def test_getByBuildFarmJobs(self):
def test_getByBuildFarmJobs_empty(self):
API Documentation for Launchpad, generated by pydoctor at 2020-12-05 00:00:02.