Commit a0f8e908 authored by Aurel's avatar Aurel

erp5_simulation bt5 depends on erp5_accounting, update bt5 lists of

unit test


git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@37785 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4bcb9cf1
...@@ -129,7 +129,7 @@ class TestAdvancedInvoice(TestSaleInvoiceMixin, ERP5TypeTestCase): ...@@ -129,7 +129,7 @@ class TestAdvancedInvoice(TestSaleInvoiceMixin, ERP5TypeTestCase):
def getBusinessTemplateList(self): def getBusinessTemplateList(self):
return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_accounting', return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_accounting',
'erp5_invoicing', 'erp5_advanced_invoicing', 'erp5_apparel', 'erp5_invoicing', 'erp5_advanced_invoicing', 'erp5_apparel',
'erp5_project', 'erp5_simulation', 'erp5_simulation_test') 'erp5_project', 'erp5_accounting', 'erp5_simulation', 'erp5_simulation_test')
def stepStartRelatedInvoice(self, sequence=None, sequence_list=None, **kw): def stepStartRelatedInvoice(self, sequence=None, sequence_list=None, **kw):
packing_list = sequence.get('packing_list') packing_list = sequence.get('packing_list')
......
...@@ -162,6 +162,7 @@ class TestConversionInSimulation(AccountingTestCase,ERP5TypeTestCase): ...@@ -162,6 +162,7 @@ class TestConversionInSimulation(AccountingTestCase,ERP5TypeTestCase):
'erp5_accounting_ui_test', 'erp5_accounting_ui_test',
'erp5_invoicing', 'erp5_invoicing',
'erp5_simplified_invoicing', 'erp5_simplified_invoicing',
'erp5_accounting',
'erp5_simulation', 'erp5_simulation',
'erp5_simulation_test', 'erp5_simulation_test',
) )
......
...@@ -106,6 +106,7 @@ class TestCommerce(ERP5TypeTestCase): ...@@ -106,6 +106,7 @@ class TestCommerce(ERP5TypeTestCase):
'erp5_trade', 'erp5_trade',
'erp5_pdm', 'erp5_pdm',
'erp5_commerce', 'erp5_commerce',
'erp5_accounting',
'erp5_simulation', 'erp5_simulation',
'erp5_simulation_test',) 'erp5_simulation_test',)
......
...@@ -43,7 +43,8 @@ from Products.ERP5Type.Document.BusinessTemplate import getChainByType ...@@ -43,7 +43,8 @@ from Products.ERP5Type.Document.BusinessTemplate import getChainByType
class TestERP5SimulationMixin(TestInvoiceMixin): class TestERP5SimulationMixin(TestInvoiceMixin):
def getBusinessTemplateList(self): def getBusinessTemplateList(self):
return list(TestInvoiceMixin.getBusinessTemplateList(self)) + \ return list(TestInvoiceMixin.getBusinessTemplateList(self)) + \
['erp5_administration', 'erp5_simulation', 'erp5_simulation_test'] ['erp5_administration', 'erp5_accounting', 'erp5_simulation',
'erp5_simulation_test']
def afterSetUp(self, quiet=1, run=1): def afterSetUp(self, quiet=1, run=1):
TestInvoiceMixin.afterSetUp(self) TestInvoiceMixin.afterSetUp(self)
......
...@@ -86,6 +86,7 @@ class TestImmobilisationMixin(ERP5TypeTestCase): ...@@ -86,6 +86,7 @@ class TestImmobilisationMixin(ERP5TypeTestCase):
"erp5_simplified_invoicing", "erp5_simplified_invoicing",
"erp5_apparel", # In order to use items "erp5_apparel", # In order to use items
"erp5_immobilisation", "erp5_immobilisation",
'erp5_accounting',
"erp5_simulation", "erp5_simulation",
"erp5_simulation_test", "erp5_simulation_test",
) )
......
...@@ -75,7 +75,7 @@ class TestInventory(TestOrderMixin, ERP5TypeTestCase): ...@@ -75,7 +75,7 @@ class TestInventory(TestOrderMixin, ERP5TypeTestCase):
"""Business Templates required for this test. """Business Templates required for this test.
""" """
return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_apparel', return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_apparel',
'erp5_simulation', 'erp5_simulation_test') 'erp5_accounting', 'erp5_simulation', 'erp5_simulation_test')
def setUpPreferences(self): def setUpPreferences(self):
#create apparel variation preferences #create apparel variation preferences
......
...@@ -199,7 +199,7 @@ class InventoryAPITestCase(ERP5TypeTestCase): ...@@ -199,7 +199,7 @@ class InventoryAPITestCase(ERP5TypeTestCase):
erp5_apparel is required for item erp5_apparel is required for item
""" """
return ('erp5_base', 'erp5_pdm', 'erp5_dummy_movement', 'erp5_trade', return ('erp5_base', 'erp5_pdm', 'erp5_dummy_movement', 'erp5_trade',
'erp5_apparel', 'erp5_project', 'erp5_simulation', 'erp5_apparel', 'erp5_project', 'erp5_accounting', 'erp5_simulation',
'erp5_simulation_test') 'erp5_simulation_test')
# TODO: move this to a base class {{{ # TODO: move this to a base class {{{
......
...@@ -83,7 +83,7 @@ class TestInvoiceMixin(TestPackingListMixin, ...@@ -83,7 +83,7 @@ class TestInvoiceMixin(TestPackingListMixin,
def getBusinessTemplateList(self): def getBusinessTemplateList(self):
return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_accounting', return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_accounting',
'erp5_invoicing', 'erp5_simplified_invoicing', 'erp5_apparel', 'erp5_invoicing', 'erp5_simplified_invoicing', 'erp5_apparel',
'erp5_project', 'erp5_simulation', 'erp5_simulation_test', 'erp5_project', 'erp5_accounting', 'erp5_simulation', 'erp5_simulation_test',
'erp5_administration') 'erp5_administration')
@UnrestrictedMethod @UnrestrictedMethod
......
...@@ -72,7 +72,7 @@ class TestOrderMixin: ...@@ -72,7 +72,7 @@ class TestOrderMixin:
""" """
""" """
return ('erp5_base','erp5_pdm', 'erp5_trade', 'erp5_apparel', return ('erp5_base','erp5_pdm', 'erp5_trade', 'erp5_apparel',
'erp5_project', 'erp5_simulation', 'erp5_simulation_test', 'erp5_project', 'erp5_accounting', 'erp5_simulation', 'erp5_simulation_test',
'erp5_administration') 'erp5_administration')
def login(self, quiet=0, run=1): def login(self, quiet=0, run=1):
......
...@@ -66,7 +66,7 @@ class TestProductionOrderMixin(TestOrderMixin): ...@@ -66,7 +66,7 @@ class TestProductionOrderMixin(TestOrderMixin):
""" """
""" """
return ('erp5_base','erp5_pdm', 'erp5_trade', 'erp5_mrp', return ('erp5_base','erp5_pdm', 'erp5_trade', 'erp5_mrp',
'erp5_simulation', 'erp5_simulation_test') 'erp5_accounting', 'erp5_simulation', 'erp5_simulation_test')
def setUpPreferences(self): def setUpPreferences(self):
portal = self.getPortal() portal = self.getPortal()
......
...@@ -64,7 +64,7 @@ class TestResource(ERP5TypeTestCase): ...@@ -64,7 +64,7 @@ class TestResource(ERP5TypeTestCase):
""" """
# Trade is needeed for pricing # Trade is needeed for pricing
return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_apparel', return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_apparel',
'erp5_simulation', 'erp5_simulation_test') 'erp5_accounting', 'erp5_simulation', 'erp5_simulation_test')
def getTitle(self): def getTitle(self):
return "Resource" return "Resource"
......
...@@ -116,7 +116,7 @@ class TestTaskMixin: ...@@ -116,7 +116,7 @@ class TestTaskMixin:
""" """
""" """
return ('erp5_base','erp5_pdm', 'erp5_trade', 'erp5_project', return ('erp5_base','erp5_pdm', 'erp5_trade', 'erp5_project',
'erp5_simulation', 'erp5_simulation_test') 'erp5_accounting', 'erp5_simulation', 'erp5_simulation_test')
# def stepLogin(self, **kw): # def stepLogin(self, **kw):
# portal = self.getPortal() # portal = self.getPortal()
......
...@@ -40,7 +40,7 @@ class TestTaskReporting(ERP5ReportTestCase): ...@@ -40,7 +40,7 @@ class TestTaskReporting(ERP5ReportTestCase):
def getBusinessTemplateList(self): def getBusinessTemplateList(self):
"""Returns list of BT to be installed.""" """Returns list of BT to be installed."""
return ('erp5_base','erp5_pdm', 'erp5_trade', 'erp5_project', return ('erp5_base','erp5_pdm', 'erp5_trade', 'erp5_project',
'erp5_simulation', 'erp5_simulation_test') 'erp5_accounting', 'erp5_simulation', 'erp5_simulation_test')
@reindex @reindex
def _makeOneTask(self, simulation_state='planned', **kw): def _makeOneTask(self, simulation_state='planned', **kw):
......
...@@ -109,7 +109,7 @@ class TestTransformation(TestTransformationMixin, BaseTestUnitConversion): ...@@ -109,7 +109,7 @@ class TestTransformation(TestTransformationMixin, BaseTestUnitConversion):
""" """
""" """
return ('erp5_base','erp5_pdm', 'erp5_trade', 'erp5_mrp', 'erp5_apparel', return ('erp5_base','erp5_pdm', 'erp5_trade', 'erp5_mrp', 'erp5_apparel',
'erp5_dummy_movement', 'erp5_project', 'erp5_simulation', 'erp5_dummy_movement', 'erp5_project', 'erp5_accounting', , 'erp5_simulation',
'erp5_simulation_test') 'erp5_simulation_test')
def test_01_getAggregatedAmountListSimple(self): def test_01_getAggregatedAmountListSimple(self):
......
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