Commit b19422f3 authored by Sebastien Robin's avatar Sebastien Robin

added class TestAccountingRulesMixin


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6179 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 11cb562e
...@@ -56,16 +56,7 @@ from AccessControl.SecurityManagement import newSecurityManager ...@@ -56,16 +56,7 @@ from AccessControl.SecurityManagement import newSecurityManager
from zLOG import LOG, INFO from zLOG import LOG, INFO
from DateTime import DateTime from DateTime import DateTime
class TestAccountingRules(ERP5TypeTestCase): class TestAccountingRulesMixin:
"""
This should test the simulation tree and builds starting from the
invoice.
"""
RUN_ALL_TESTS = 1
RUN_BROKEN_TESTS = os.getenv('RUN_BROKEN_TESTS', 0)
# define portal_types # define portal_types
account_module_portal_type = "Account Module" account_module_portal_type = "Account Module"
accounting_module_portal_type = "Accounting Module" accounting_module_portal_type = "Accounting Module"
...@@ -91,9 +82,6 @@ class TestAccountingRules(ERP5TypeTestCase): ...@@ -91,9 +82,6 @@ class TestAccountingRules(ERP5TypeTestCase):
= "Purchase Invoice Transaction" = "Purchase Invoice Transaction"
payment_transaction_portal_type = "Payment Transaction" payment_transaction_portal_type = "Payment Transaction"
def getTitle(self):
return "Accounting Rules"
def getBusinessTemplateList(self): def getBusinessTemplateList(self):
""" Return the list of business templates. """ """ Return the list of business templates. """
return ('erp5_base','erp5_pdm', 'erp5_trade', 'erp5_accounting') return ('erp5_base','erp5_pdm', 'erp5_trade', 'erp5_accounting')
...@@ -116,6 +104,21 @@ class TestAccountingRules(ERP5TypeTestCase): ...@@ -116,6 +104,21 @@ class TestAccountingRules(ERP5TypeTestCase):
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase):
"""
This should test the simulation tree and builds starting from the
invoice.
"""
RUN_ALL_TESTS = 1
RUN_BROKEN_TESTS = os.getenv('RUN_BROKEN_TESTS', 0)
def getTitle(self):
return "Accounting Rules"
def afterSetUp(self) : def afterSetUp(self) :
self.login() self.login()
self.createCategories() self.createCategories()
......
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