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):
def getBusinessTemplateList(self):
return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_accounting',
'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):
packing_list = sequence.get('packing_list')
......
......@@ -162,6 +162,7 @@ class TestConversionInSimulation(AccountingTestCase,ERP5TypeTestCase):
'erp5_accounting_ui_test',
'erp5_invoicing',
'erp5_simplified_invoicing',
'erp5_accounting',
'erp5_simulation',
'erp5_simulation_test',
)
......
......@@ -106,6 +106,7 @@ class TestCommerce(ERP5TypeTestCase):
'erp5_trade',
'erp5_pdm',
'erp5_commerce',
'erp5_accounting',
'erp5_simulation',
'erp5_simulation_test',)
......
......@@ -43,7 +43,8 @@ from Products.ERP5Type.Document.BusinessTemplate import getChainByType
class TestERP5SimulationMixin(TestInvoiceMixin):
def 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):
TestInvoiceMixin.afterSetUp(self)
......
......@@ -86,6 +86,7 @@ class TestImmobilisationMixin(ERP5TypeTestCase):
"erp5_simplified_invoicing",
"erp5_apparel", # In order to use items
"erp5_immobilisation",
'erp5_accounting',
"erp5_simulation",
"erp5_simulation_test",
)
......
......@@ -75,7 +75,7 @@ class TestInventory(TestOrderMixin, ERP5TypeTestCase):
"""Business Templates required for this test.
"""
return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_apparel',
'erp5_simulation', 'erp5_simulation_test')
'erp5_accounting', 'erp5_simulation', 'erp5_simulation_test')
def setUpPreferences(self):
#create apparel variation preferences
......
......@@ -199,7 +199,7 @@ class InventoryAPITestCase(ERP5TypeTestCase):
erp5_apparel is required for item
"""
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')
# TODO: move this to a base class {{{
......
......@@ -83,7 +83,7 @@ class TestInvoiceMixin(TestPackingListMixin,
def getBusinessTemplateList(self):
return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_accounting',
'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')
@UnrestrictedMethod
......
......@@ -72,7 +72,7 @@ class TestOrderMixin:
"""
"""
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')
def login(self, quiet=0, run=1):
......
......@@ -66,7 +66,7 @@ class TestProductionOrderMixin(TestOrderMixin):
"""
"""
return ('erp5_base','erp5_pdm', 'erp5_trade', 'erp5_mrp',
'erp5_simulation', 'erp5_simulation_test')
'erp5_accounting', 'erp5_simulation', 'erp5_simulation_test')
def setUpPreferences(self):
portal = self.getPortal()
......
......@@ -64,7 +64,7 @@ class TestResource(ERP5TypeTestCase):
"""
# Trade is needeed for pricing
return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_apparel',
'erp5_simulation', 'erp5_simulation_test')
'erp5_accounting', 'erp5_simulation', 'erp5_simulation_test')
def getTitle(self):
return "Resource"
......
......@@ -115,8 +115,8 @@ class TestTaskMixin:
def getBusinessTemplateList(self):
"""
"""
return ('erp5_base','erp5_pdm', 'erp5_trade', 'erp5_project',
'erp5_simulation', 'erp5_simulation_test')
return ('erp5_base','erp5_pdm', 'erp5_trade', 'erp5_project',
'erp5_accounting', 'erp5_simulation', 'erp5_simulation_test')
# def stepLogin(self, **kw):
# portal = self.getPortal()
......
......@@ -40,7 +40,7 @@ class TestTaskReporting(ERP5ReportTestCase):
def getBusinessTemplateList(self):
"""Returns list of BT to be installed."""
return ('erp5_base','erp5_pdm', 'erp5_trade', 'erp5_project',
'erp5_simulation', 'erp5_simulation_test')
'erp5_accounting', 'erp5_simulation', 'erp5_simulation_test')
@reindex
def _makeOneTask(self, simulation_state='planned', **kw):
......
......@@ -109,7 +109,7 @@ class TestTransformation(TestTransformationMixin, BaseTestUnitConversion):
"""
"""
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')
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