Commit 724080e6 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Avoid multiple inheritance when possible.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30687 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cbc5bcd0
......@@ -28,7 +28,7 @@
from DateTime import DateTime
from zLOG import LOG
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
def isSameSet(a, b):
for i in a:
......@@ -39,7 +39,7 @@ def isSameSet(a, b):
return False
return len(a) == len(b)
class TestERP5BankingMixin:
class TestERP5BankingMixin(ERP5TypeTestCase):
"""
Mixin class for unit test of banking operations
"""
......
......@@ -32,7 +32,6 @@ import os
from zLOG import LOG
from DateTime import DateTime
from Products.CMFCore.utils import getToolByName
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -47,8 +46,7 @@ if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
class TestERP5BankingAccountingCancellation(TestERP5BankingMixin,
ERP5TypeTestCase):
class TestERP5BankingAccountingCancellation(TestERP5BankingMixin):
"""
Inside this test we will check that it is possible to cancel a transaction.
"""
......
......@@ -27,7 +27,6 @@
##############################################################################
from DateTime import DateTime
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
......@@ -35,7 +34,7 @@ from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
QUIET = False
RUN_ALL_TEST = True
class TestERP5BankingAccountingDate(TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingAccountingDate(TestERP5BankingMixin):
"""
Unit test Accounting Date definition and utility script.
"""
......
......@@ -32,10 +32,8 @@ import os
from zLOG import LOG
from DateTime import DateTime
from Products.CMFCore.utils import getToolByName
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
from Products.ERP5Banking.tests.testERP5BankingCheckPayment \
import TestERP5BankingCheckPaymentMixin
from Products.ERP5Banking.tests.testERP5BankingMoneyDeposit \
......@@ -53,9 +51,7 @@ if __name__ == '__main__':
class TestERP5BankingAvailableInventory(TestERP5BankingCheckPaymentMixin,
TestERP5BankingMoneyDepositMixin,
TestERP5BankingMixin,
ERP5TypeTestCase):
TestERP5BankingMoneyDepositMixin):
"""
Unit test class in order to make sure that it is not possible
to debit two times the same account if the amount on the account is
......
......@@ -29,7 +29,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -46,7 +45,7 @@ if __name__ == '__main__':
class TestERP5BankingInventory(TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingInventory(TestERP5BankingMixin):
"""
This class is a unit test to check the module of Bank Account Inventory
"""
......
......@@ -29,7 +29,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -45,7 +44,7 @@ if __name__ == '__main__':
class TestERP5BankingCashBalanceRegulation(TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingCashBalanceRegulation(TestERP5BankingMixin):
"""
Unit test for the cash balance regulation module
Source = destination
......
......@@ -29,7 +29,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -45,7 +44,7 @@ if __name__ == '__main__':
class TestERP5BankingCashClassification(TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingCashClassification(TestERP5BankingMixin):
# pseudo constants
......
......@@ -30,7 +30,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -46,7 +45,7 @@ if __name__ == '__main__':
class TestERP5BankingCashExchange(TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingCashExchange(TestERP5BankingMixin):
"""
Unit test for the cash exchange module
Source = destination
......
......@@ -29,7 +29,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -46,7 +45,7 @@ if __name__ == '__main__':
class TestERP5BankingInventory(TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingInventory(TestERP5BankingMixin):
"""
This class is a unit test to check the module of Cash Transfer
......
......@@ -31,7 +31,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -46,7 +45,7 @@ if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
class TestERP5BankingCashMovement(TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingCashMovement(TestERP5BankingMixin):
"""
This class is a unit test to check the module of Cash Movement
......
......@@ -29,10 +29,8 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
from Products.ERP5Banking.tests.testERP5BankingMonetaryIssue import TestERP5BankingMonetaryReceptionMixin
from DateTime import DateTime
......@@ -46,8 +44,7 @@ if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
class TestERP5BankingCashMovementNewNotEmitted(TestERP5BankingMonetaryReceptionMixin,
TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingCashMovementNewNotEmitted(TestERP5BankingMonetaryReceptionMixin):
"""
This class is a unit test to check the module of Cash Movement New Not Emitted
"""
......
......@@ -29,7 +29,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -45,7 +44,7 @@ if __name__ == '__main__':
class TestERP5BankingCashSorting(TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingCashSorting(TestERP5BankingMixin):
# pseudo constants
......
......@@ -29,7 +29,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -46,7 +45,7 @@ if __name__ == '__main__':
class TestERP5BankingCashToCurrencyPurchase(TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingCashToCurrencyPurchase(TestERP5BankingMixin):
"""
Unit test for the cash exchange module
Source = destination
......
......@@ -29,7 +29,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -45,7 +44,7 @@ if __name__ == '__main__':
class TestERP5BankingCashToCurrencySale(TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingCashToCurrencySale(TestERP5BankingMixin):
"""
Unit test for the cash exchange module
Source = destination
......
......@@ -32,7 +32,6 @@ import os
from zLOG import LOG
from DateTime import DateTime
from Products.CMFCore.utils import getToolByName
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -48,7 +47,7 @@ if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
class TestERP5BankingCheckDeposit(TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingCheckDeposit(TestERP5BankingMixin):
"""
Unit test class for the check deposit module
"""
......
......@@ -32,7 +32,6 @@ import os
from zLOG import LOG
from DateTime import DateTime
from Products.CMFCore.utils import getToolByName
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -47,7 +46,7 @@ if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
class TestERP5BankingCheckPaymentMixin:
class TestERP5BankingCheckPaymentMixin(TestERP5BankingMixin):
"""
Unit test class for the check payment module
"""
......@@ -526,8 +525,7 @@ class TestERP5BankingCheckPaymentMixin:
self.assertEquals(check.getSimulationState(), 'delivered')
self.assertEquals(self.check_1.getSimulationState(), 'confirmed')
class TestERP5BankingCheckPayment(TestERP5BankingCheckPaymentMixin,
TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingCheckPayment(TestERP5BankingCheckPaymentMixin):
# pseudo constants
RUN_ALL_TEST = 1 # we want to run all test
......
......@@ -29,7 +29,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.testERP5BankingCheckbookUsualCashTransfer \
......@@ -47,7 +46,7 @@ os.environ['EVENT_LOG_SEVERITY'] = '-300'
if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
class TestERP5BankingCheckbookDeliveryMixin:
class TestERP5BankingCheckbookDeliveryMixin(TestERP5BankingMixin):
def createCheckbookDelivery(self, sequence=None, sequence_list=None, **kwd):
"""
......@@ -133,8 +132,7 @@ class TestERP5BankingCheckbookDeliveryMixin:
class TestERP5BankingCheckbookDelivery(TestERP5BankingCheckbookDeliveryMixin,
TestERP5BankingCheckbookUsualCashTransferMixin,
TestERP5BankingMixin, ERP5TypeTestCase):
TestERP5BankingCheckbookUsualCashTransferMixin):
"""
This class is a unit test to check the module of Cash Transfer
......
......@@ -29,10 +29,8 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
from Products.ERP5Banking.tests.testERP5BankingCheckbookVaultTransfer \
import TestERP5BankingCheckbookVaultTransferMixin
......@@ -46,8 +44,7 @@ if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
class TestERP5BankingCheckbookMovement(TestERP5BankingCheckbookVaultTransferMixin,
TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingCheckbookMovement(TestERP5BankingCheckbookVaultTransferMixin):
"""
This class is a unit test to check the module of Cash Transfer
......
......@@ -29,7 +29,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -45,7 +44,7 @@ if __name__ == '__main__':
class TestERP5BankingCheckbookReception(TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingCheckbookReception(TestERP5BankingMixin):
"""
This class is a unit test to check the module of Cash Transfer
......
......@@ -29,12 +29,10 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.testERP5BankingCheckbookVaultTransfer \
import TestERP5BankingCheckbookVaultTransferMixin
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
from DateTime import DateTime
from zLOG import LOG
......@@ -106,8 +104,7 @@ class TestERP5BankingCheckbookUsualCashTransferMixin(
self.workflow_tool.doActionFor(self.checkbook_vault_transfer, 'deliver_action',
wf_id='checkbook_vault_transfer_workflow')
class TestERP5BankingCheckbookUsualCashTransfer(TestERP5BankingCheckbookUsualCashTransferMixin,
TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingCheckbookUsualCashTransfer(TestERP5BankingCheckbookUsualCashTransferMixin):
"""
This class is a unit test to check the module of Cash Transfer
......
......@@ -29,7 +29,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -43,7 +42,7 @@ os.environ['EVENT_LOG_SEVERITY'] = '-300'
if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
class TestERP5BankingCheckbookVaultTransferMixin:
class TestERP5BankingCheckbookVaultTransferMixin(TestERP5BankingMixin):
def createCheckbookReception(self, sequence=None, sequence_list=None, **kwd):
"""
......@@ -145,8 +144,7 @@ class TestERP5BankingCheckbookVaultTransferMixin:
"""
self.previous_delivery.edit(start_date=self.previous_date)
class TestERP5BankingCheckbookVaultTransfer(TestERP5BankingCheckbookVaultTransferMixin,
TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingCheckbookVaultTransfer(TestERP5BankingCheckbookVaultTransferMixin):
"""
This class is a unit test to check the module of Cash Transfer
......
......@@ -29,7 +29,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -45,7 +44,7 @@ if __name__ == '__main__':
class TestERP5BankingClassificationSurvey(TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingClassificationSurvey(TestERP5BankingMixin):
# pseudo constants
......
......@@ -32,7 +32,6 @@ import os
from zLOG import LOG
from DateTime import DateTime
from Testing import ZopeTestCase
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.DCWorkflow.DCWorkflow import ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
#from Products.ERP5Banking.tests.testERP5BankingCheckPayment \
......@@ -48,8 +47,7 @@ os.environ['EVENT_LOG_SEVERITY'] = '-300'
if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
class TestERP5BankingCounterDate(TestERP5BankingMixin,
ERP5TypeTestCase):
class TestERP5BankingCounterDate(TestERP5BankingMixin):
RUN_ALL_TEST = 1 # we want to run all test
QUIET = 0 # we don't want the test to be quiet
......
......@@ -31,7 +31,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -46,7 +45,7 @@ if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
class TestERP5BankingCounterRendering(TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingCounterRendering(TestERP5BankingMixin):
"""
This class is a unit test to check the module of Counter Rendering
......
......@@ -31,7 +31,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -46,7 +45,7 @@ if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
class TestERP5BankingDestructionSurvey(TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingDestructionSurvey(TestERP5BankingMixin):
"""
This class is a unit test to check the module of Destruction Survey
......
......@@ -29,7 +29,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -45,7 +44,7 @@ if __name__ == '__main__':
class TestERP5BankingForeignCashReception(TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingForeignCashReception(TestERP5BankingMixin):
"""
This class is a unit test to check the module of Cash Transfer
......
......@@ -29,7 +29,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -45,7 +44,7 @@ if __name__ == '__main__':
class TestERP5BankingInternalMoneyDeposit(TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingInternalMoneyDeposit(TestERP5BankingMixin):
......
......@@ -29,7 +29,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -45,7 +44,7 @@ if __name__ == '__main__':
class TestERP5BankingInternalMoneyPayment(TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingInternalMoneyPayment(TestERP5BankingMixin):
......
......@@ -31,7 +31,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -47,7 +46,7 @@ if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
class TestERP5BankingMonetaryDestruction(TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingMonetaryDestruction(TestERP5BankingMixin):
"""
This class is a unit test to check the module of Monetary Destruction
......
......@@ -29,7 +29,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -45,7 +44,7 @@ if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
class TestERP5BankingMonetaryReceptionMixin:
class TestERP5BankingMonetaryReceptionMixin(TestERP5BankingMixin):
def stepCreateMonetaryReception(self, sequence=None, sequence_list=None, **kw):
"""
......@@ -107,7 +106,7 @@ class TestERP5BankingMonetaryReceptionMixin:
self.assertEqual(len(self.simulation_tool.getFutureTrackingList(at_date=self.current_date, node=self.reception.getRelativeUrl())), 2)
class TestERP5BankingMonetaryIssue(TestERP5BankingMonetaryReceptionMixin, TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingMonetaryIssue(TestERP5BankingMonetaryReceptionMixin):
"""
This class is a unit test to check the module of Monetary Issue
......
......@@ -31,7 +31,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -46,7 +45,7 @@ if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
class TestERP5BankingMonetaryRecall(TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingMonetaryRecall(TestERP5BankingMixin):
"""
This class is a unit test to check the module of Monetary Recall
......
......@@ -29,7 +29,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -45,7 +44,7 @@ if __name__ == '__main__':
class TestERP5BankingMonetaryReception(TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingMonetaryReception(TestERP5BankingMixin):
"""
This class is a unit test to check the module of Cash Transfer
......
......@@ -29,7 +29,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -44,7 +43,7 @@ if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
class TestERP5BankingMonetarySurvey(TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingMonetarySurvey(TestERP5BankingMixin):
"""
This class is a unit test to check the module of Monetary Survey
"""
......
......@@ -29,7 +29,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -45,7 +44,7 @@ if __name__ == '__main__':
class TestERP5BankingMoneyDepositMixin:
class TestERP5BankingMoneyDepositMixin(TestERP5BankingMixin):
......@@ -317,8 +316,7 @@ class TestERP5BankingMoneyDepositMixin:
## Tests
##################################
class TestERP5BankingMoneyDeposit(TestERP5BankingMoneyDepositMixin,
TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingMoneyDeposit(TestERP5BankingMoneyDepositMixin):
# pseudo constants
RUN_ALL_TEST = 1 # we want to run all test
......
......@@ -31,7 +31,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -46,7 +45,7 @@ if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
class TestERP5BankingMoneyDepositRendering(TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingMoneyDepositRendering(TestERP5BankingMixin):
"""
This class is a unit test to check the module of Money Deposit Rendering
......
......@@ -29,7 +29,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -45,7 +44,7 @@ if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin):
"""
"""
......
......@@ -29,16 +29,14 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.testERP5BankingCheckbookVaultTransfer \
import TestERP5BankingCheckbookVaultTransferMixin
from Products.ERP5Banking.tests.testERP5BankingCheckbookUsualCashTransfer \
import TestERP5BankingCheckbookUsualCashTransferMixin
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
from Products.ERP5Banking.tests.testERP5BankingCheckbookDelivery \
import TestERP5BankingCheckbookDelivery, TestERP5BankingCheckbookDeliveryMixin
import TestERP5BankingCheckbookDeliveryMixin
from DateTime import DateTime
from zLOG import LOG
......@@ -53,8 +51,7 @@ if __name__ == '__main__':
class TestERP5BankingStopPayment( TestERP5BankingCheckbookDeliveryMixin,
TestERP5BankingCheckbookUsualCashTransferMixin,
TestERP5BankingCheckbookVaultTransferMixin,
TestERP5BankingMixin, ERP5TypeTestCase):
TestERP5BankingCheckbookVaultTransferMixin):
"""
This class is a unit test to check the module of Stop Payment
"""
......
......@@ -29,14 +29,12 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.testERP5BankingCheckbookUsualCashTransfer \
import TestERP5BankingCheckbookUsualCashTransferMixin
from Products.ERP5Banking.tests.testERP5BankingTravelerCheckSale \
import TestERP5BankingTravelerCheckSaleMixin
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
from DateTime import DateTime
from zLOG import LOG
......@@ -50,8 +48,7 @@ if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
class TestERP5BankingTravelerCheckPurchase(TestERP5BankingCheckbookUsualCashTransferMixin,
TestERP5BankingTravelerCheckSaleMixin,
TestERP5BankingMixin, ERP5TypeTestCase):
TestERP5BankingTravelerCheckSaleMixin):
"""
This class is a unit test to check the module of Cash Transfer
......
......@@ -29,7 +29,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.testERP5BankingCheckbookUsualCashTransfer \
......@@ -47,7 +46,7 @@ os.environ['EVENT_LOG_SEVERITY'] = '-300'
if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
class TestERP5BankingTravelerCheckSaleMixin:
class TestERP5BankingTravelerCheckSaleMixin(TestERP5BankingMixin):
def getTravelerCheckSaleModule(self):
"""
......@@ -206,8 +205,7 @@ class TestERP5BankingTravelerCheckSaleMixin:
self.assertEqual(len(workflow_history), 3)
class TestERP5BankingTravelerCheckSale(TestERP5BankingCheckbookUsualCashTransferMixin,
TestERP5BankingTravelerCheckSaleMixin,
TestERP5BankingMixin, ERP5TypeTestCase):
TestERP5BankingTravelerCheckSaleMixin):
"""
This class is a unit test to check the module of Cash Transfer
......
......@@ -31,7 +31,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -46,7 +45,7 @@ if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
class TestERP5BankingUsualCashRendering(TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingUsualCashRendering(TestERP5BankingMixin):
"""
This class is a unit test to check the module of Usual Cash Rendering
......
......@@ -31,7 +31,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -46,7 +45,7 @@ if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
class TestERP5BankingUsualCashTransfer(TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingUsualCashTransfer(TestERP5BankingMixin):
"""
This class is a unit test to check the module of Usual Cash Transfer
......
......@@ -31,7 +31,6 @@
# import requested python module
import os
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.DCWorkflow.DCWorkflow import Unauthorized, ValidationFailed
from Products.ERP5Banking.tests.TestERP5BankingMixin import TestERP5BankingMixin
......@@ -46,7 +45,7 @@ if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
class TestERP5BankingVaultTransfer(TestERP5BankingMixin, ERP5TypeTestCase):
class TestERP5BankingVaultTransfer(TestERP5BankingMixin):
"""
This class is a unit test to check the module of Vault Transfer
......
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