l.r.t.t.ProjectMilestoneTest(unittest.TestCase) : class documentation

Part of lp.registry.tests.test_project_milestone View In Hierarchy

Setup of several milestones and associated data.

A project milestone aggreates information from similar product milestones.
This class creates:
  - up to three milestones in three products which belong to the
    Gnome project
  - specs and bugs in these products and associates them with the
    milestones.

Visibility:
  - All milestones named '1.1' are active
  - One milestone named '1.2' is active, the other is not active
  - All milestones named '1.3' are not active

Additionally, a milestone with a "typo" in its name and a milestone
for firefox, i.e., for the mozilla project, named '1.1' is created.
Method __init__ If helper_only is True, set up it only as a helper class.
Method setUp Login an admin user to perform the tests.
Method createProductMilestone Create a milestone in the trunk series of a product.
Method test_milestone_name The names of project milestones.
Method test_milestone_date_expected The dateexpected attribute.
Method test_milestone_activity A project milestone is active, if at least one product milestone
Method test_no_foreign_milestones Milestones in "foreign" products.
Method createSpecification Create a specification, assigned to a milestone, for a product.
Method test_milestone_specifications Specifications of a project milestone.
Method test_milestone_bugtasks Bugtasks and project milestones.
Method setUpProjectMilestoneTests Create product milestones for project milestone doctests.
Method _createProductBugtask Create a bugtask for a product, assign the task to a milestone.
Method _createProductSeriesBugtask Create a bugtask for a productseries, assign it to a milestone.
def __init__(self, methodName='runTest', helper_only=False):
If helper_only is True, set up it only as a helper class.
def setUp(self):
Login an admin user to perform the tests.
def createProductMilestone(self, milestone_name, product_name, date_expected):
Create a milestone in the trunk series of a product.
def test_milestone_name(self):
The names of project milestones.

A project milestone named A exists, if at least one product of this project has a milestone named A.

def test_milestone_date_expected(self):
The dateexpected attribute.

dateexpected is set to min(productmilestones.dateexpected).

def test_milestone_activity(self):
A project milestone is active, if at least one product milestone is active.
def test_no_foreign_milestones(self):
Milestones in "foreign" products.

Milestones from products which do not belong to a project are not returned by project.milestones and project.all_milestones.

def createSpecification(self, milestone_name, product_name):
Create a specification, assigned to a milestone, for a product.
def test_milestone_specifications(self):
Specifications of a project milestone.

Specifications defined for products and assigned to a milestone are also assigned to the milestone of the project.

def _createProductBugtask(self, product_name, milestone_name):
Create a bugtask for a product, assign the task to a milestone.
def _createProductSeriesBugtask(self, product_name, product_series_name, milestone_name):
Create a bugtask for a productseries, assign it to a milestone.
def test_milestone_bugtasks(self):
Bugtasks and project milestones.

Bugtasks assigned to product milestones are also assigned to the corresponding project milestone.

def setUpProjectMilestoneTests(self):
Create product milestones for project milestone doctests.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.