From 1807619ba3d3acc20d2f5502ad1f17a85106a64b Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Fri, 5 Mar 2010 14:48:28 +0000 Subject: [PATCH] consumed movement id is changed since r33314. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33451 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testProductionOrder.py | 3 ++- product/ERP5Legacy/tests/testLegacyProductionOrder.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/product/ERP5/tests/testProductionOrder.py b/product/ERP5/tests/testProductionOrder.py index 30d625a453..9d2a66830b 100644 --- a/product/ERP5/tests/testProductionOrder.py +++ b/product/ERP5/tests/testProductionOrder.py @@ -776,7 +776,8 @@ class TestProductionOrderMixin(TestOrderMixin): self.assertEquals(2, len(simulation_movement_list)) # Test consumed movement 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] operation_resource = consumed_movement.portal_categories.resolveCategory( 'operation/operation1') diff --git a/product/ERP5Legacy/tests/testLegacyProductionOrder.py b/product/ERP5Legacy/tests/testLegacyProductionOrder.py index c3c96ec5bb..9243dacbdd 100644 --- a/product/ERP5Legacy/tests/testLegacyProductionOrder.py +++ b/product/ERP5Legacy/tests/testLegacyProductionOrder.py @@ -761,7 +761,8 @@ class TestProductionOrderMixin(TestOrderMixin): self.assertEquals(2, len(simulation_movement_list)) # Test consumed movement 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] operation_resource = consumed_movement.portal_categories.resolveCategory( 'operation/operation1') -- 2.30.9