Commit 4f5e4d8b authored by Tatuya Kamada's avatar Tatuya Kamada

Since r27724 erp5_invoicing is split into three business templates;

'erp5_invoicing', 'erp5_simplified_invoicing', 'erp5_advanced_invoicing'.
So these test-cases requires the erp5_simplified_invoicing business
template to work the tests compatibly.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27726 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7466caf0
......@@ -92,7 +92,7 @@ class TestAccountingRulesMixin:
def getBusinessTemplateList(self):
""" Return the list of business templates. """
return ('erp5_base','erp5_pdm', 'erp5_trade', 'erp5_accounting',
'erp5_invoicing')
'erp5_invoicing', 'erp5_simplified_invoicing')
def getAccountModule(self):
return getattr(self.getPortal(), 'account',
......
This diff is collapsed.
......@@ -47,7 +47,7 @@ class TestBPMMixin(ERP5TypeTestCase):
def getBusinessTemplateList(self):
return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_accounting',
'erp5_invoicing', 'erp5_mrp', 'erp5_bpm')
'erp5_invoicing', 'erp5_simplified_invoicing', 'erp5_mrp', 'erp5_bpm')
default_discount_ratio = -0.05 # -5%
default_tax_ratio = 0.196 # 19,6%
......
......@@ -181,7 +181,8 @@ class TestConversionInSimulation(AccountingTestCase,ERP5TypeTestCase):
'erp5_trade',
'erp5_accounting',
'erp5_accounting_ui_test',
'erp5_invoicing'
'erp5_invoicing',
'erp5_simplified_invoicing'
)
def createInvoiceTransactionRule(self, resource=None):
return UnrestrictedMethod(
......
......@@ -59,7 +59,7 @@ class TestBudget(ERP5TypeTestCase):
Return the list of required business templates.
"""
return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_accounting',
'erp5_invoicing', 'erp5_budget')
'erp5_invoicing', 'erp5_simplified_invoicing', 'erp5_budget')
def login(self, quiet=QUIET, run=RUN_ALL_TEST):
"""
......
......@@ -82,6 +82,7 @@ class TestImmobilisationMixin(ERP5TypeTestCase):
"erp5_pdm",# Needed by accounting
"erp5_accounting",
"erp5_invoicing",
"erp5_simplified_invoicing",
"erp5_apparel", # In order to use items
"erp5_immobilisation",
)
......
......@@ -83,7 +83,7 @@ class TestInvoiceMixin(TestPackingListMixin,
def getBusinessTemplateList(self):
return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_accounting',
'erp5_invoicing', 'erp5_apparel')
'erp5_invoicing', 'erp5_simplified_invoicing', 'erp5_apparel')
def createCategories(self):
"""Create the categories for our test. """
......
......@@ -142,7 +142,7 @@ class TestInvoiceVAT(ERP5TypeTestCase):
def getBusinessTemplateList(self):
""" """
return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_accounting',
'erp5_invoicing')
'erp5_invoicing', 'erp5_simplified_invoicing')
def _makeAccount(self, **kw):
"""Creates an Account."""
......
......@@ -152,7 +152,8 @@ class TestPayrollMixin(ERP5ReportTestCase, TestBPMMixin):
def getBusinessTemplateList(self):
""" """
return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_accounting',
'erp5_invoicing', 'erp5_mrp', 'erp5_bpm', 'erp5_payroll')
'erp5_invoicing', 'erp5_simplified_invoicing', 'erp5_mrp',
'erp5_bpm', 'erp5_payroll')
def createService(self):
module = self.portal.getDefaultModule(portal_type='Service')
......
......@@ -37,7 +37,8 @@ class TradeConditionTestCase(ERP5TypeTestCase):
"""Tests for Trade Conditions and Tax
"""
def getBusinessTemplateList(self):
return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_accounting', 'erp5_invoicing')
return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_accounting',
'erp5_invoicing', 'erp5_simplified_invoicing')
size_category_list = ['small', 'big']
def afterSetUp(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