Test: Merged tw-1481.t into dependencies.t
This commit is contained in:
@@ -297,6 +297,56 @@ class TestFeature725(TestCase):
|
||||
self.assertIn("Unblocked", out)
|
||||
|
||||
|
||||
class Test1481(TestCase):
|
||||
def setUp(self):
|
||||
self.t = Task()
|
||||
self.t('add parent')
|
||||
self.t('add child')
|
||||
self.t('add child2')
|
||||
self.child1_uuid = self.t.export_one(2)['uuid']
|
||||
self.child2_uuid = self.t.export_one(3)['uuid']
|
||||
|
||||
@unittest.expectedFailure
|
||||
def test_set_dependency_on_first_completed_task(self):
|
||||
"""1481: Sets dependency on task which has been just completed."""
|
||||
self.t('2 done')
|
||||
|
||||
# Trigger the GC to clear up IDs
|
||||
self.t('next')
|
||||
|
||||
# Set the dependency
|
||||
self.t('1 modify depends:%s' % self.child1_uuid)
|
||||
|
||||
@unittest.expectedFailure
|
||||
def test_set_dependency_on_second_completed_task(self):
|
||||
"""
|
||||
1481: Sets dependency on task which has been completed
|
||||
before most recently completed task.
|
||||
"""
|
||||
|
||||
self.t('2 done')
|
||||
self.t('3 done')
|
||||
|
||||
# Trigger the GC to clear up IDs
|
||||
self.t('next')
|
||||
|
||||
# Set the dependencies
|
||||
self.t('1 modify depends:%s' % self.child2_uuid)
|
||||
|
||||
@unittest.expectedFailure
|
||||
def test_set_dependency_on_two_completed_tasks(self):
|
||||
""" 1481: Sets dependency on two most recent completed tasks. """
|
||||
self.t('2 done')
|
||||
self.t('3 done')
|
||||
|
||||
# Trigger the GC to clear up IDs
|
||||
self.t('next')
|
||||
|
||||
# Set the dependencies
|
||||
self.t('1 modify depends:%s,%s' % (self.child1_uuid,
|
||||
self.child2_uuid))
|
||||
|
||||
|
||||
# TODO - test dependency.confirmation config variable
|
||||
# TODO - test undo on backing out chain gap repair
|
||||
# TODO - test undo on backing out choice to not perform chain gap repair
|
||||
|
||||
Reference in New Issue
Block a user