l.c.m.t.t.TestSourcePackageRecipeMixin : class documentation

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

Known subclasses: lp.code.model.tests.test_sourcepackagerecipe.TestSourcePackageRecipeBzr, lp.code.model.tests.test_sourcepackagerecipe.TestSourcePackageRecipeGit

Tests for SourcePackageRecipe objects.
Method makeSourcePackageRecipe Undocumented
Method test_implements_interface SourcePackageRecipe implements ISourcePackageRecipe.
Method test_avoids_problematic_snapshots Undocumented
Method makeRecipeComponents Return a dict of values that can be used to make a recipe.
Method test_creation Undocumented
Method test_creation_private_base_branch An exception should be raised if the base branch is private.
Method test_creation_private_referenced_branch An exception should be raised if a referenced branch is private.
Method test_exists Undocumented
Method test_source_implements_interface Undocumented
Method test_recipe_implements_interface Undocumented
Method test_base_branch Undocumented
Method test_branch_links_created Undocumented
Method createSourcePackageRecipe Undocumented
Method test_multiple_branch_links_created Undocumented
Method test_preLoadReferencedBranches Undocumented
Method test_random_user_cant_edit Undocumented
Method test_set_recipe_text_resets_branch_references Undocumented
Method test_rejects_run_command Undocumented
Method test_run_rejected_without_mangling_recipe Undocumented
Method test_nest_part nest-part instruction can be round-tripped.
Method test_nest_part_no_target nest-part instruction with no target-dir can be round-tripped.
Method test_accept_format_0_3 Recipe format 0.3 is accepted.
Method test_reject_newer_formats Undocumented
Method test_requestBuild Undocumented
Method test_requestBuildRejectsNotPPA Undocumented
Method test_requestBuildRejectsNoPermission Undocumented
Method test_requestBuildRejectsInvalidPocket Undocumented
Method test_requestBuildRejectsDisabledArchive Undocumented
Method test_requestBuildScore Normal build requests have a relatively low queue score (2510).
Method test_requestBuildManualScore Manual build requests have a score equivalent to binary builds.
Method test_requestBuild_relative_build_score Offsets for archives are respected.
Method test_requestBuildRejectRepeats Reject build requests that are identical to pending builds.
Method test_requestBuildPrivatePPAWithArchivePermission User is not in PPA owner team but has ArchivePermission.
Method test_sourcepackagerecipe_description Ensure that the SourcePackageRecipe has a proper description.
Method test_distroseries Test that the distroseries behaves as a set.
Method test_build_daily Test that build_daily behaves as a bool.
Method test_view_public Anyone can view a recipe with public branches.
Method test_view_private Recipes with private branches are restricted.
Method test_edit Only the owner can edit a sourcepackagerecipe.
Method test_destroySelf Should destroy associated builds, distroseries, etc.
Method test_destroySelf_preserves_release Undocumented
Method test_destroySelf_retains_build Undocumented
Method test_destroySelf_permissions Undocumented
Method test_findStaleDailyBuilds Undocumented
Method test_findStaleDailyBuildsDistinct Undocumented
Method test_getMedianBuildDuration Undocumented
Method test_getBuilds Undocumented
Method test_getPendingBuildInfo SourcePackageRecipe.getPendingBuildInfo() is as expected.
Method test_getBuilds_cancelled Undocumented
Method test_getBuilds_cancelled_never_started_last Undocumented
Method test_setRecipeText_private_base_branch Undocumented
Method test_setRecipeText_private_referenced_branch Undocumented
Method test_getBuilds_ignores_disabled_archive Undocumented
Method test_containsUnbuildableSeries Undocumented
Method test_containsUnbuildableSeries_with_obsolete_series Undocumented
Method test_performDailyBuild_filters_obsolete_series Undocumented
def makeSourcePackageRecipe(self, branches=(), recipe=None, **kwargs):
Undocumented
def test_implements_interface(self):
SourcePackageRecipe implements ISourcePackageRecipe.
def test_avoids_problematic_snapshots(self):
Undocumented
def makeRecipeComponents(self, branches=()):
Return a dict of values that can be used to make a recipe.

Suggested use: provide as kwargs to ISourcePackageRecipeSource.new
:param branches: The list of branches to use in the recipe.  (If
    unspecified, a branch will be autogenerated.)
def test_creation(self):
Undocumented
def test_creation_private_base_branch(self):
An exception should be raised if the base branch is private.
def test_creation_private_referenced_branch(self):
An exception should be raised if a referenced branch is private.
def test_exists(self):
Undocumented
def test_source_implements_interface(self):
Undocumented
def test_recipe_implements_interface(self):
Undocumented
def test_base_branch(self):
Undocumented
def test_branch_links_created(self):
Undocumented
def createSourcePackageRecipe(self, number_of_branches=2):
Undocumented
def test_multiple_branch_links_created(self):
Undocumented
def test_preLoadReferencedBranches(self):
Undocumented
def test_random_user_cant_edit(self):
Undocumented
def test_set_recipe_text_resets_branch_references(self):
Undocumented
def test_rejects_run_command(self):
Undocumented
def test_run_rejected_without_mangling_recipe(self):
Undocumented
def test_nest_part(self):
nest-part instruction can be round-tripped.
def test_nest_part_no_target(self):
nest-part instruction with no target-dir can be round-tripped.
def test_accept_format_0_3(self):
Recipe format 0.3 is accepted.
def test_reject_newer_formats(self):
Undocumented
def test_requestBuild(self):
Undocumented
def test_requestBuildRejectsNotPPA(self):
Undocumented
def test_requestBuildRejectsNoPermission(self):
Undocumented
def test_requestBuildRejectsInvalidPocket(self):
Undocumented
def test_requestBuildRejectsDisabledArchive(self):
Undocumented
def test_requestBuildScore(self):
Normal build requests have a relatively low queue score (2510).
def test_requestBuildManualScore(self):
Manual build requests have a score equivalent to binary builds.
def test_requestBuild_relative_build_score(self):
Offsets for archives are respected.
def test_requestBuildRejectRepeats(self):
Reject build requests that are identical to pending builds.
def test_requestBuildPrivatePPAWithArchivePermission(self):
User is not in PPA owner team but has ArchivePermission.

The case where the user is not in the PPA owner team but is allowed to upload to the PPA via an explicit ArchivePermission takes a different security path than if they were part of the team.

def test_sourcepackagerecipe_description(self):
Ensure that the SourcePackageRecipe has a proper description.
def test_distroseries(self):
Test that the distroseries behaves as a set.
def test_build_daily(self):
Test that build_daily behaves as a bool.
def test_view_public(self):
Anyone can view a recipe with public branches.
def test_view_private(self):
Recipes with private branches are restricted.
def test_edit(self):
Only the owner can edit a sourcepackagerecipe.
def test_destroySelf(self):
Should destroy associated builds, distroseries, etc.
def test_destroySelf_preserves_release(self):
Undocumented
def test_destroySelf_retains_build(self):
Undocumented
def test_destroySelf_permissions(self):
Undocumented
def test_findStaleDailyBuilds(self):
Undocumented
def test_findStaleDailyBuildsDistinct(self):
Undocumented
def test_getMedianBuildDuration(self):
Undocumented
def test_getBuilds(self):
Undocumented
def test_getPendingBuildInfo(self):
SourcePackageRecipe.getPendingBuildInfo() is as expected.
def test_getBuilds_cancelled(self):
Undocumented
def test_getBuilds_cancelled_never_started_last(self):
Undocumented
def test_setRecipeText_private_base_branch(self):
Undocumented
def test_setRecipeText_private_referenced_branch(self):
Undocumented
def test_getBuilds_ignores_disabled_archive(self):
Undocumented
def test_containsUnbuildableSeries(self):
Undocumented
def test_containsUnbuildableSeries_with_obsolete_series(self):
Undocumented
def test_performDailyBuild_filters_obsolete_series(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.