l.b.m.t.t.BugTaskSetFindExpirableBugTasksTest(unittest.TestCase) : class documentation

Part of lp.bugs.model.tests.test_bugtask View In Hierarchy

Test BugTaskSet.findExpirableBugTasks() behaviour.
Method setUp Setup the zope interaction and create expirable bugtasks.
Method tearDown Undocumented
Method testSupportedTargetParam The target param supports a limited set of BugTargets.
Method testUnsupportedBugTargetParam Test that unsupported targets raise errors.
def setUp(self):
Setup the zope interaction and create expirable bugtasks.
def tearDown(self):
Undocumented
def testSupportedTargetParam(self):
The target param supports a limited set of BugTargets.

Four BugTarget types may passed as the target argument: Distribution, DistroSeries, Product, ProductSeries.

def testUnsupportedBugTargetParam(self):
Test that unsupported targets raise errors.

Three BugTarget types are not supported because the UI does not provide bug-index to link to the 'bugs that can expire' page. ProjectGroup, SourcePackage, and DistributionSourcePackage will raise an NotImplementedError.

Passing an unknown bugtarget type will raise an AssertionError.

API Documentation for Launchpad, generated by pydoctor at 2020-09-19 00:00:06.