Commit 265fc629 authored by Sebastien Robin's avatar Sebastien Robin

define the list of businness templates into the mixin class


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13607 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 111c142d
......@@ -44,6 +44,20 @@ class TestERP5BankingMixin:
Mixin class for unit test of banking operations
"""
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_cash',
'erp5_banking_check')
def enableLightInstall(self):
"""
......
......@@ -90,22 +90,6 @@ class TestERP5BankingAccountIncident(TestERP5BankingMixin, ERP5TypeTestCase):
"""
return "ERP5BankingAccountIncident"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash contains all method for cash transfer
)
def getAccountIncidentModule(self):
"""
Return the Cash Transer Module
......
......@@ -78,23 +78,6 @@ class TestERP5BankingAvailableInventory(TestERP5BankingCheckPaymentMixin,
"""
return "ERP5BankingAvailabeInventory"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_cash',
'erp5_banking_check')
def afterSetUp(self):
"""
Method called before the launch of the test to initialize some data
......
......@@ -82,22 +82,6 @@ class TestERP5BankingCashBalanceRegulation(TestERP5BankingMixin, ERP5TypeTestCas
"""
return "ERP5BankingCashBalanceRegulation"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ( 'erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash_balance_regulation contains all method for cash sorting
)
def getCashBalanceRegulationModule(self):
"""
Return the Cash Balance Regulation Module
......
......@@ -61,22 +61,6 @@ class TestERP5BankingCashClassification(TestERP5BankingMixin, ERP5TypeTestCase):
"""
return "ERP5BankingCashClassification"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ( 'erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash contains all method for cash sorting
)
def getCashSortingModule(self):
"""
Return the Cash Sorting Module
......
......@@ -83,22 +83,6 @@ class TestERP5BankingCashExchange(TestERP5BankingMixin, ERP5TypeTestCase):
"""
return "ERP5BankingCashExchange"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ( 'erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash'
)
def getCashExchangeModule(self):
"""
Return the Cash Exchange Module
......
......@@ -90,22 +90,6 @@ class TestERP5BankingCashIncident(TestERP5BankingMixin, ERP5TypeTestCase):
"""
return "ERP5BankingCashIncident"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash contains all method for cash transfer
)
def getCashIncidentModule(self):
"""
Return the Cash Transer Module
......
......@@ -70,22 +70,6 @@ class TestERP5BankingInventory(TestERP5BankingMixin, ERP5TypeTestCase):
"""
return "ERP5BankingInventory"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory'
)
def afterSetUp(self):
"""
Method called before the launch of the test to initialize some data
......
......@@ -103,23 +103,6 @@ class TestERP5BankingCashMovement(TestERP5BankingMixin, ERP5TypeTestCase):
"""
return "ERP5BankingCashMovement"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash'
# erp5_banking_cash contains all method for cash movement
)
def getCashMovementModule(self):
"""
Return the Vault Transer Module
......
......@@ -61,22 +61,6 @@ class TestERP5BankingCashSorting(TestERP5BankingMixin, ERP5TypeTestCase):
"""
return "ERP5BankingCashSorting"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ( 'erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash contains all method for cash sorting
)
def getCashSortingModule(self):
"""
Return the Cash Sorting Module
......
......@@ -90,22 +90,6 @@ class TestERP5BankingCashSortingIncident(TestERP5BankingMixin, ERP5TypeTestCase)
"""
return "ERP5BankingCashSortingIncident"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash contains all method for cash transfer
)
def getCashSortingIncidentModule(self):
"""
Return the Cash Transer Module
......
......@@ -83,22 +83,6 @@ class TestERP5BankingCashToCurrencyPurchase(TestERP5BankingMixin, ERP5TypeTestCa
"""
return "ERP5BankingCashToCurrencyPurchase"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ( 'erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash'
)
def getCashToCurrencyPurchaseModule(self):
"""
Return the Cash To Currency Purchase Module
......
......@@ -82,22 +82,6 @@ class TestERP5BankingCashToCurrencySale(TestERP5BankingMixin, ERP5TypeTestCase):
"""
return "ERP5BankingCashToCurrencySale"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ( 'erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash contains all method for cash sorting
)
def getCashToCurrencySaleModule(self):
"""
Return the Cash To Currency Sale Module
......
......@@ -66,22 +66,6 @@ class TestERP5BankingCheckDeposit(TestERP5BankingMixin, ERP5TypeTestCase):
"""
return "ERP5BankingCheckDeposit"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_check')
def afterSetUp(self):
"""
Method called before the launch of the test to initialize some data
......
......@@ -65,22 +65,6 @@ class TestERP5BankingCheckPaymentMixin:
"""
return "ERP5BankingCheckPayment"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_check')
def afterSetUp(self):
"""
Method called before the launch of the test to initialize some data
......
......@@ -156,23 +156,6 @@ class TestERP5BankingCheckbookDelivery(TestERP5BankingCheckbookDeliveryMixin,
"""
return "ERP5BankingCheckbookDelivery"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_check',
)
def stepCheckObjects(self, sequence=None, sequence_list=None, **kwd):
"""
Check that all the objects we created in afterSetUp or
......
......@@ -71,23 +71,6 @@ class TestERP5BankingCheckbookMovement(TestERP5BankingCheckbookVaultTransferMixi
"""
return "ERP5BankingCheckbookMovement"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_check',
)
def afterSetUp(self):
"""
Method called before the launch of the test to initialize some data
......
......@@ -69,23 +69,6 @@ class TestERP5BankingCheckbookReception(TestERP5BankingMixin, ERP5TypeTestCase):
"""
return "ERP5BankingCheckbookReception"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_check'
)
def afterSetUp(self):
"""
Method called before the launch of the test to initialize some data
......
......@@ -136,23 +136,6 @@ class TestERP5BankingCheckbookUsualCashTransfer(TestERP5BankingCheckbookUsualCas
"""
return "ERP5BankingCheckbookUsualCashTransfer"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_check',
)
def afterSetUp(self):
"""
Method called before the launch of the test to initialize some data
......
......@@ -160,23 +160,6 @@ class TestERP5BankingCheckbookVaultTransfer(TestERP5BankingCheckbookVaultTransfe
"""
return "ERP5BankingCheckbookVaultTransfer"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_check',
)
def afterSetUp(self):
"""
Method called before the launch of the test to initialize some data
......
......@@ -61,22 +61,6 @@ class TestERP5BankingClassificationSurvey(TestERP5BankingMixin, ERP5TypeTestCase
"""
return "ERP5BankingClassificationSurvey"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ( 'erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash contains all method for classification surveyg
)
def getClassificationSurveyModule(self):
"""
Return the Classification Survey Module
......
......@@ -92,22 +92,6 @@ class TestERP5BankingCounterRendering(TestERP5BankingMixin, ERP5TypeTestCase):
"""
return "ERP5BankingCounterRendering"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash contains all method for counter rendering
)
def getCounterRenderingModule(self):
"""
Return the Cash Transer Module
......
......@@ -73,20 +73,6 @@ class TestERP5BankingCurrencyPurchase(TestERP5BankingMixin, ERP5TypeTestCase):
"""
return getattr(self.getPortal(), 'currency_purchase_module', None)
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_cash')
def afterSetUp(self):
"""
Method called before the launch of the test to initialize some data
......
......@@ -72,21 +72,6 @@ class TestERP5BankingCurrencySale(TestERP5BankingMixin, ERP5TypeTestCase):
"""
return getattr(self.getPortal(), 'currency_sale_module', None)
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_cash')
def afterSetUp(self):
"""
Method called before the launch of the test to initialize some data
......
......@@ -65,22 +65,6 @@ class TestERP5BankingDestructionSurvey(TestERP5BankingMixin, ERP5TypeTestCase):
"""
return "ERP5BankingDestructionSurvey"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash contains all method for monetary destruction
)
def getDestructionSurveyModule(self):
"""
Return the Cash Transer Module
......
......@@ -71,22 +71,6 @@ class TestERP5BankingForeignCashReception(TestERP5BankingMixin, ERP5TypeTestCase
"""
return "ERP5BankingForeignCashReception"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_cash'
)
def getForeignCashReceptionModule(self):
"""
Return the Cash Inventory Module
......
......@@ -61,22 +61,6 @@ class TestERP5BankingInternalMoneyDeposit(TestERP5BankingMixin, ERP5TypeTestCase
"""
return "ERP5BankingInternalMoneyDeposit"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ( 'erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_internal_money_deposit contains all method for cash sorting
)
def getInternalMoneyDepositModule(self):
"""
Return the Internal Money Deposit Module
......
......@@ -92,22 +92,6 @@ class TestERP5BankingMonetaryDestruction(TestERP5BankingMixin, ERP5TypeTestCase)
"""
return "ERP5BankingMonetaryDestruction"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash'
)
def getMonetaryDestructionModule(self):
"""
Return the Monetary Destruction Module
......
......@@ -131,22 +131,6 @@ class TestERP5BankingMonetaryIssue(TestERP5BankingMonetaryReceptionMixin, TestER
"""
return "ERP5BankingMonetaryIssue"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_cash'
)
def getMonetaryIssueModule(self):
"""
Return the Cash Inventory Module
......
......@@ -92,22 +92,6 @@ class TestERP5BankingMonetaryRecall(TestERP5BankingMixin, ERP5TypeTestCase):
"""
return "ERP5BankingMonetaryRecall"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash contains all method for monetary recall
)
def getMonetaryRecallModule(self):
"""
Return the Monetary Recall Module
......
......@@ -69,22 +69,6 @@ class TestERP5BankingMonetaryReception(TestERP5BankingMixin, ERP5TypeTestCase):
"""
return "ERP5BankingMonetaryReception"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_cash'
)
def getMonetaryReceptionModule(self):
"""
Return the Cash Inventory Module
......
......@@ -62,22 +62,6 @@ class TestERP5BankingMonetarySurvey(TestERP5BankingMixin, ERP5TypeTestCase):
"""
return "ERP5BankingMonetarySurvey"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash contains all method for cash transfer
)
def getMonetarySurveyModule(self):
"""
Return the Cash Transer Module
......
......@@ -65,22 +65,6 @@ class TestERP5BankingMoneyDepositMixin:
"""
return "ERP5BankingMoneyDeposit"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ( 'erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory' #, 'currency_exchange_patch'
, 'erp5_banking_cash' # erp5_banking_money_deposit contains all method for cash sorting
)
def getMoneyDepositModule(self):
"""
Return the Money Deposit Module
......
......@@ -92,22 +92,6 @@ class TestERP5BankingMoneyDepositRendering(TestERP5BankingMixin, ERP5TypeTestCas
"""
return "ERP5BankingMoneyDepositRendering"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash contains all method for money deposit rendering
)
def getMoneyDepositRenderingModule(self):
"""
Return the Cash Transer Module
......
......@@ -89,22 +89,6 @@ class TestERP5BankingMoneyDepositTransfer(TestERP5BankingMixin, ERP5TypeTestCase
"""
return "ERP5BankingMoneyDepositTransfer"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash'
)
def getMoneyDepositTransferModule(self):
"""
Return the Cash Transer Module
......
......@@ -60,21 +60,6 @@ class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin, ERP5TypeTestCase):
"""
return "ERP5BankingMutilatedBanknote"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core'
, 'erp5_banking_inventory'
, 'erp5_banking_cash'
)
def getMutilatedBanknoteModule(self):
"""
Return the Cash Transer Module
......
......@@ -73,22 +73,6 @@ class TestERP5BankingStopPayment( TestERP5BankingCheckbookDeliveryMixin,
"""
return "ERP5BankingStopPayment"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_check',
)
def getStopPaymentModule(self):
"""
Return the Stop Payment Module
......
......@@ -50,27 +50,6 @@ os.environ['EVENT_LOG_SEVERITY'] = '-300'
if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
#class TestERP5BankingTravelerCheckPurchaseMixin:
#
# def createTravelerCheckSale(self, sequence=None, sequence_list=None, **kwd):
# """
# Create a traveler check sale
# """
# # We will do the transfer ot two items.
# self.traveler_check_sale = self.traveler_check_sale_module.newContent(
# id='traveler_check_sale', portal_type='Traveler Check Sale',
# source_value=self.traveler_check_source, destination_value=None,
# destination_payment_value=self.bank_account_1,
# resource_value=self.currency_1,
# start_date=self.date)
# # check its portal type
# self.assertEqual(self.traveler_check_sale.getPortalType(), 'Traveler Check Sale')
# # check source
# self.assertEqual(self.traveler_check_sale.getBaobabSource(),
# 'site/testsite/paris/surface/banque_interne/guichet_1/encaisse_des_billets_et_monnaies')
# # check destination
# self.assertEqual(self.traveler_check_sale.getBaobabDestination(), None)
class TestERP5BankingTravelerCheckPurchase(TestERP5BankingCheckbookUsualCashTransferMixin,
TestERP5BankingTravelerCheckSaleMixin,
TestERP5BankingMixin, ERP5TypeTestCase):
......@@ -94,22 +73,6 @@ class TestERP5BankingTravelerCheckPurchase(TestERP5BankingCheckbookUsualCashTran
"""
return "ERP5BankingTravelerCheckPurchase"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_check',
)
def getTravelerCheckPurchaseModule(self):
"""
Return the Traveler Check Purchase Module
......
......@@ -233,24 +233,6 @@ class TestERP5BankingTravelerCheckSale(TestERP5BankingCheckbookUsualCashTransfer
"""
return "ERP5BankingTravelerCheckSale"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base',
'erp5_trade',
'erp5_accounting',
'erp5_banking_core',
'erp5_banking_inventory',
'erp5_banking_check',
)
def stepCheckObjects(self, sequence=None, sequence_list=None, **kwd):
"""
Check that all the objects we created in afterSetUp or
......
......@@ -90,22 +90,6 @@ class TestERP5BankingUsualCashIncident(TestERP5BankingMixin, ERP5TypeTestCase):
"""
return "ERP5BankingUsualCashIncident"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash contains all method for cash transfer
)
def getUsualCashIncidentModule(self):
"""
Return the Cash Transer Module
......
......@@ -104,22 +104,6 @@ class TestERP5BankingUsualCashRendering(TestERP5BankingMixin, ERP5TypeTestCase):
"""
return "ERP5BankingUsualCashRendering"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash'
)
def getUsualCashRenderingModule(self):
"""
Return the Vault Transer Module
......
......@@ -92,22 +92,6 @@ class TestERP5BankingUsualCashTransfer(TestERP5BankingMixin, ERP5TypeTestCase):
"""
return "ERP5BankingUsualCashTransfer"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash' # erp5_banking_cash contains all method for cash transfer
)
def getUsualCashTransferModule(self):
"""
Return the Cash Transer Module
......
......@@ -104,22 +104,6 @@ class TestERP5BankingVaultTransfer(TestERP5BankingMixin, ERP5TypeTestCase):
"""
return "ERP5BankingVaultTransfer"
def getBusinessTemplateList(self):
"""
Return the list of business templates we need to run the test.
This method is called during the initialization of the unit test by
the unit test framework in order to know which business templates
need to be installed to run the test on.
"""
return ('erp5_base'
, 'erp5_trade'
, 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory'
, 'erp5_banking_cash'
)
def getVaultTransferModule(self):
"""
Return the Vault Transer Module
......
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