Commit e048111e authored by Łukasz Nowak's avatar Łukasz Nowak

follow_up replaced aggregate.

parent 010dd9d0
...@@ -480,7 +480,7 @@ class TestVifibPurchasePackingListLineConstraint(testVifibMixin): ...@@ -480,7 +480,7 @@ class TestVifibPurchasePackingListLineConstraint(testVifibMixin):
self.assertFalse(consistency_message in getMessageList(line)) self.assertFalse(consistency_message in getMessageList(line))
class TestVifibSoftwareReleaseConstraint(testVifibMixin): class TestVifibSoftwareReleaseConstraint(testVifibMixin):
def test_aggregate(self): def test_follow_up(self):
consistency_message_existence = 'One Software Product must be defined' consistency_message_existence = 'One Software Product must be defined'
consistency_message_state = 'Software Product must be validated' consistency_message_state = 'Software Product must be validated'
...@@ -494,7 +494,7 @@ class TestVifibSoftwareReleaseConstraint(testVifibMixin): ...@@ -494,7 +494,7 @@ class TestVifibSoftwareReleaseConstraint(testVifibMixin):
software_product = self.portal.software_product_module.newContent( software_product = self.portal.software_product_module.newContent(
portal_type='Software Product') portal_type='Software Product')
software_release.setAggregate(software_product.getRelativeUrl()) software_release.setFollowUp(software_product.getRelativeUrl())
self.assertFalse(consistency_message_existence in getMessageList( self.assertFalse(consistency_message_existence in getMessageList(
software_release)) software_release))
...@@ -502,13 +502,13 @@ class TestVifibSoftwareReleaseConstraint(testVifibMixin): ...@@ -502,13 +502,13 @@ class TestVifibSoftwareReleaseConstraint(testVifibMixin):
software_product_2 = self.portal.software_product_module.newContent( software_product_2 = self.portal.software_product_module.newContent(
portal_type='Software Product') portal_type='Software Product')
software_release.setAggregateList([software_product.getRelativeUrl(), software_release.setFollowUpList([software_product.getRelativeUrl(),
software_product_2.getRelativeUrl()]) software_product_2.getRelativeUrl()])
self.assertTrue(consistency_message_existence in getMessageList( self.assertTrue(consistency_message_existence in getMessageList(
software_release)) software_release))
software_release.setAggregate(software_product.getRelativeUrl()) software_release.setFollowUp(software_product.getRelativeUrl())
self.assertTrue(consistency_message_state in getMessageList( self.assertTrue(consistency_message_state in getMessageList(
software_release)) software_release))
......
...@@ -80,7 +80,7 @@ class TestVifibUserDeveloper(testVifibMixin): ...@@ -80,7 +80,7 @@ class TestVifibUserDeveloper(testVifibMixin):
software_product.portal_workflow.doActionFor(software_product, 'publish_action') software_product.portal_workflow.doActionFor(software_product, 'publish_action')
# Edit software release # Edit software release
software_release.edit( software_release.edit(
aggregate_value=software_product, follow_up_value=software_product,
) )
# Accept software release # Accept software release
software_release.portal_workflow.doActionFor(software_release, 'publish_action') software_release.portal_workflow.doActionFor(software_release, 'publish_action')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment