diff --git a/product/ERP5/tests/testProductionOrder.py b/product/ERP5/tests/testProductionOrder.py index 8e800c127a9302dd10e311a92f2efb0f88c76da6..e4797fc99d57dfcc70c98912a0e7f9d84578ba5b 100644 --- a/product/ERP5/tests/testProductionOrder.py +++ b/product/ERP5/tests/testProductionOrder.py @@ -97,9 +97,8 @@ class TestProductionOrderMixin(TestOrderMixin): some categories for testing them """ TestOrderMixin.createCategories(self) - operation_category_list = ['operation1', 'operation2'] if len(self.category_tool.operation.contentValues()) == 0: - for category_id in operation_category_list: + for category_id in self.operation_category_list: o = self.category_tool.operation.newContent( portal_type='Category', id=category_id)