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
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 |
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.)
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.