Commit 1807619b authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

consumed movement id is changed since r33314.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33451 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f22e0c45
...@@ -776,7 +776,8 @@ class TestProductionOrderMixin(TestOrderMixin): ...@@ -776,7 +776,8 @@ class TestProductionOrderMixin(TestOrderMixin):
self.assertEquals(2, len(simulation_movement_list)) self.assertEquals(2, len(simulation_movement_list))
# Test consumed movement # Test consumed movement
transformation = sequence.get('transformation') transformation = sequence.get('transformation')
consumed_movement_id = 'cr_%s_1' % transformation.getId() consumed_movement_id = 'cr_%s_1_%s' % (transformation.getId(),
applied_rule.getParentId())
consumed_movement = applied_rule[consumed_movement_id] consumed_movement = applied_rule[consumed_movement_id]
operation_resource = consumed_movement.portal_categories.resolveCategory( operation_resource = consumed_movement.portal_categories.resolveCategory(
'operation/operation1') 'operation/operation1')
......
...@@ -761,7 +761,8 @@ class TestProductionOrderMixin(TestOrderMixin): ...@@ -761,7 +761,8 @@ class TestProductionOrderMixin(TestOrderMixin):
self.assertEquals(2, len(simulation_movement_list)) self.assertEquals(2, len(simulation_movement_list))
# Test consumed movement # Test consumed movement
transformation = sequence.get('transformation') transformation = sequence.get('transformation')
consumed_movement_id = 'cr_%s_1' % transformation.getId() consumed_movement_id = 'cr_%s_1_%s' % (transformation.getId(),
applied_rule.getParentId())
consumed_movement = applied_rule[consumed_movement_id] consumed_movement = applied_rule[consumed_movement_id]
operation_resource = consumed_movement.portal_categories.resolveCategory( operation_resource = consumed_movement.portal_categories.resolveCategory(
'operation/operation1') 'operation/operation1')
......
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