Commit c88a1077 authored by Romain Courteaud's avatar Romain Courteaud

Modified business template list to install:

  * erp5_apparel now depends on erp5_pdm.
  * erp5_apparel_depend is not used anymore.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3653 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 59e29607
...@@ -76,7 +76,7 @@ class Test(ERP5TypeTestCase): ...@@ -76,7 +76,7 @@ class Test(ERP5TypeTestCase):
Return the list of business templates. Return the list of business templates.
""" """
return ('erp5_trade','erp5_apparel_depend','erp5_apparel') return ('erp5_pdm', 'erp5_apparel', 'erp5_trade')
def getPortalId(self): def getPortalId(self):
return self.getPortal().getId() return self.getPortal().getId()
......
...@@ -75,7 +75,7 @@ class TestOrderMixin: ...@@ -75,7 +75,7 @@ class TestOrderMixin:
def getBusinessTemplateList(self): def getBusinessTemplateList(self):
""" """
""" """
return ('erp5_apparel_depend','erp5_apparel', 'erp5_trade') return ('erp5_pdm','erp5_apparel', 'erp5_trade')
def login(self, quiet=0, run=run_all_test): def login(self, quiet=0, run=run_all_test):
uf = self.getPortal().acl_users uf = self.getPortal().acl_users
......
...@@ -93,7 +93,7 @@ class TestProductionOrder(TestOrderMixin, ERP5TypeTestCase): ...@@ -93,7 +93,7 @@ class TestProductionOrder(TestOrderMixin, ERP5TypeTestCase):
def getBusinessTemplateList(self): def getBusinessTemplateList(self):
""" """
""" """
return ('erp5_apparel', 'erp5_trade', 'erp5_mrp') return ('erp5_pdm', 'erp5_apparel', 'erp5_trade', 'erp5_mrp')
def createCategories(self): def createCategories(self):
""" """
...@@ -563,6 +563,12 @@ class TestProductionOrder(TestOrderMixin, ERP5TypeTestCase): ...@@ -563,6 +563,12 @@ class TestProductionOrder(TestOrderMixin, ERP5TypeTestCase):
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
def test_02_testIndustrialPhase(self, quiet=0, run=run_all_test):
"""
"""
# XXX to be written
pass
if __name__ == '__main__': if __name__ == '__main__':
framework() framework()
else: else:
......
...@@ -66,7 +66,7 @@ class TestResource(ERP5TypeTestCase): ...@@ -66,7 +66,7 @@ class TestResource(ERP5TypeTestCase):
""" """
Install needed business template Install needed business template
""" """
return ('erp5_apparel_depend','erp5_apparel') return ('erp5_pdm','erp5_apparel')
def getTitle(self): def getTitle(self):
return "Resource" return "Resource"
...@@ -120,12 +120,22 @@ class TestResource(ERP5TypeTestCase): ...@@ -120,12 +120,22 @@ class TestResource(ERP5TypeTestCase):
self.colour_category_list = map(lambda x: 'colour/%s' % x, self.colour_category_list = map(lambda x: 'colour/%s' % x,
colour_category_list) colour_category_list)
ind_phase_category_list = ['phase1', 'phase2']
if len(self.category_tool.industrial_phase.contentValues()) == 0:
for category_id in ind_phase_category_list:
o = self.category_tool.industrial_phase.newContent(
portal_type='Category',
id=category_id)
self.industrial_phase_category_list = map(
lambda x: 'industrial_phase/%s' % x,
ind_phase_category_list)
self.morphology_category_list = [] self.morphology_category_list = []
self.base_category_content_list = { self.base_category_content_list = {
'size':self.size_category_list, 'size':self.size_category_list,
'colour':self.colour_category_list, 'colour':self.colour_category_list,
'morphology':self.morphology_category_list, 'morphology':self.morphology_category_list,
'industrial_phase':[] 'industrial_phase':self.industrial_phase_category_list
} }
def stepTic(self,**kw): def stepTic(self,**kw):
......
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