Commit c7c266f9 authored by Nicolas Dumazet's avatar Nicolas Dumazet

operation_category_list is an attribute. Use it directly, so subclasses of

ProductionOrderMixin can successfuly override it


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33601 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 29773792
......@@ -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)
......
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