Commit 36669e27 authored by Jérome Perrin's avatar Jérome Perrin

run tests quietly


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8713 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6b042115
...@@ -48,6 +48,7 @@ from DateTime import DateTime ...@@ -48,6 +48,7 @@ from DateTime import DateTime
SOURCE = 'source' SOURCE = 'source'
DESTINATION = 'destination' DESTINATION = 'destination'
RUN_ALL_TESTS = 1 RUN_ALL_TESTS = 1
QUIET = 1
class TestAccounting(ERP5TypeTestCase): class TestAccounting(ERP5TypeTestCase):
"""Test Accounting. """ """Test Accounting. """
...@@ -61,10 +62,10 @@ class TestAccounting(ERP5TypeTestCase): ...@@ -61,10 +62,10 @@ class TestAccounting(ERP5TypeTestCase):
getattr(self.getPortal(), 'account', None)) getattr(self.getPortal(), 'account', None))
# XXX # XXX
def playSequence(self, sequence_string) : def playSequence(self, sequence_string, quiet=1) :
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self, quiet=quiet)
account_portal_type = 'Account' account_portal_type = 'Account'
accounting_period_portal_type = 'Accounting Period' accounting_period_portal_type = 'Accounting Period'
...@@ -1031,7 +1032,7 @@ class TestAccounting(ERP5TypeTestCase): ...@@ -1031,7 +1032,7 @@ class TestAccounting(ERP5TypeTestCase):
## Test Methods ############################################################ ## Test Methods ############################################################
############################################################################ ############################################################################
def test_MultiCurrencyInvoice(self, quiet=0, run=RUN_ALL_TESTS): def test_MultiCurrencyInvoice(self, quiet=QUIET, run=RUN_ALL_TESTS):
"""Basic test for multi currency accounting""" """Basic test for multi currency accounting"""
if not run : return if not run : return
self.playSequence(""" self.playSequence("""
...@@ -1043,9 +1044,9 @@ class TestAccounting(ERP5TypeTestCase): ...@@ -1043,9 +1044,9 @@ class TestAccounting(ERP5TypeTestCase):
stepCheckAccountBalanceLocalCurrency stepCheckAccountBalanceLocalCurrency
stepCheckAccountBalanceExternalCurrency stepCheckAccountBalanceExternalCurrency
stepCheckAccountBalanceConvertedCurrency stepCheckAccountBalanceConvertedCurrency
""") """, quiet=quiet)
def test_AccountingPeriod(self, quiet=0, run=RUN_ALL_TESTS): def test_AccountingPeriod(self, quiet=QUIET, run=RUN_ALL_TESTS):
"""Basic test for Accounting Periods""" """Basic test for Accounting Periods"""
if not run : return if not run : return
self.playSequence(""" self.playSequence("""
...@@ -1068,10 +1069,10 @@ class TestAccounting(ERP5TypeTestCase): ...@@ -1068,10 +1069,10 @@ class TestAccounting(ERP5TypeTestCase):
stepCheckInvoicesAreDelivered stepCheckInvoicesAreDelivered
stepTic stepTic
stepCheckAccountingTransactionDelivered stepCheckAccountingTransactionDelivered
""") """, quiet=quiet)
def test_AccountingPeriodRefusesWrongDateTransactionValidation( def test_AccountingPeriodRefusesWrongDateTransactionValidation(
self, quiet=0, run=RUN_ALL_TESTS): self, quiet=QUIET, run=RUN_ALL_TESTS):
"""Accounting Periods prevents transactions to be validated """Accounting Periods prevents transactions to be validated
when there is no oppened accounting period""" when there is no oppened accounting period"""
if not run : return if not run : return
...@@ -1087,9 +1088,9 @@ class TestAccounting(ERP5TypeTestCase): ...@@ -1087,9 +1088,9 @@ class TestAccounting(ERP5TypeTestCase):
stepCheckStopInvoicesRefused stepCheckStopInvoicesRefused
stepTic stepTic
stepCheckInvoicesAreDraft stepCheckInvoicesAreDraft
""") """, quiet=quiet)
def test_AccountingPeriodNotStoppedTransactions(self, quiet=0, def test_AccountingPeriodNotStoppedTransactions(self, quiet=QUIET,
run=RUN_ALL_TESTS): run=RUN_ALL_TESTS):
"""Accounting Periods refuse to close when some transactions are """Accounting Periods refuse to close when some transactions are
not stopped""" not stopped"""
...@@ -1106,9 +1107,9 @@ class TestAccounting(ERP5TypeTestCase): ...@@ -1106,9 +1107,9 @@ class TestAccounting(ERP5TypeTestCase):
stepCheckAccountingPeriodRefusesClosing stepCheckAccountingPeriodRefusesClosing
stepTic stepTic
stepCheckInvoicesAreDraft stepCheckInvoicesAreDraft
""") """, quiet=quiet)
def test_AccountingPeriodOtherSections(self, quiet=0, def test_AccountingPeriodOtherSections(self, quiet=QUIET,
run=RUN_ALL_TESTS): run=RUN_ALL_TESTS):
"""Accounting Periods does not change other section transactions.""" """Accounting Periods does not change other section transactions."""
if not run : return if not run : return
...@@ -1127,9 +1128,9 @@ class TestAccounting(ERP5TypeTestCase): ...@@ -1127,9 +1128,9 @@ class TestAccounting(ERP5TypeTestCase):
stepTic stepTic
stepCheckAccountingPeriodDelivered stepCheckAccountingPeriodDelivered
stepCheckInvoicesAreDraft stepCheckInvoicesAreDraft
""") """, quiet=quiet)
def test_MirrorAccounts(self, quiet=0, run=RUN_ALL_TESTS): def test_MirrorAccounts(self, quiet=QUIET, run=RUN_ALL_TESTS):
"""Tests using an account on one sides uses the mirror account """Tests using an account on one sides uses the mirror account
on the other size. """ on the other size. """
if not run : return if not run : return
...@@ -1137,18 +1138,18 @@ class TestAccounting(ERP5TypeTestCase): ...@@ -1137,18 +1138,18 @@ class TestAccounting(ERP5TypeTestCase):
stepCreateEntities stepCreateEntities
stepCreateAccounts stepCreateAccounts
stepCreateAccountingTransactionAndCheckMirrorAccount stepCreateAccountingTransactionAndCheckMirrorAccount
""") """, quiet=quiet)
def test_Acquisition(self, quiet=0, run=RUN_ALL_TESTS): def test_Acquisition(self, quiet=QUIET, run=RUN_ALL_TESTS):
"""Tests acquisition, categories and portal types are well """Tests acquisition, categories and portal types are well
configured. """ configured. """
if not run : return if not run : return
self.playSequence(""" self.playSequence("""
stepCreateCurrencies stepCreateCurrencies
stepCheckAcquisition stepCheckAcquisition
""") """, quiet=quiet)
def test_AccountingTransactionValidationDate(self, quiet=0, def test_AccountingTransactionValidationDate(self, quiet=QUIET,
run=RUN_ALL_TESTS): run=RUN_ALL_TESTS):
"""Transaction validation and dates""" """Transaction validation and dates"""
if not run : return if not run : return
...@@ -1157,9 +1158,9 @@ class TestAccounting(ERP5TypeTestCase): ...@@ -1157,9 +1158,9 @@ class TestAccounting(ERP5TypeTestCase):
stepCreateCurrencies stepCreateCurrencies
stepCreateAccounts stepCreateAccounts
stepCreateValidAccountingTransaction stepCreateValidAccountingTransaction
stepValidateNoDate""") stepValidateNoDate""", quiet=quiet)
def test_AccountingTransactionValidationSection(self, quiet=0, def test_AccountingTransactionValidationSection(self, quiet=QUIET,
run=RUN_ALL_TESTS): run=RUN_ALL_TESTS):
"""Transaction validation and section""" """Transaction validation and section"""
if not run : return if not run : return
...@@ -1168,9 +1169,9 @@ class TestAccounting(ERP5TypeTestCase): ...@@ -1168,9 +1169,9 @@ class TestAccounting(ERP5TypeTestCase):
stepCreateCurrencies stepCreateCurrencies
stepCreateAccounts stepCreateAccounts
stepCreateValidAccountingTransaction stepCreateValidAccountingTransaction
stepValidateNoSection""") stepValidateNoSection""", quiet=quiet)
def test_AccountingTransactionValidationCurrency(self, quiet=0, def test_AccountingTransactionValidationCurrency(self, quiet=QUIET,
run=RUN_ALL_TESTS): run=RUN_ALL_TESTS):
"""Transaction validation and currency""" """Transaction validation and currency"""
if not run : return if not run : return
...@@ -1179,9 +1180,9 @@ class TestAccounting(ERP5TypeTestCase): ...@@ -1179,9 +1180,9 @@ class TestAccounting(ERP5TypeTestCase):
stepCreateCurrencies stepCreateCurrencies
stepCreateAccounts stepCreateAccounts
stepCreateValidAccountingTransaction stepCreateValidAccountingTransaction
stepValidateNoCurrency""") stepValidateNoCurrency""", quiet=quiet)
def test_AccountingTransactionValidationAccounts(self, quiet=0, def test_AccountingTransactionValidationAccounts(self, quiet=QUIET,
run=RUN_ALL_TESTS): run=RUN_ALL_TESTS):
"""Transaction validation and accounts""" """Transaction validation and accounts"""
if not run : return if not run : return
...@@ -1192,9 +1193,9 @@ class TestAccounting(ERP5TypeTestCase): ...@@ -1192,9 +1193,9 @@ class TestAccounting(ERP5TypeTestCase):
stepCreateValidAccountingTransaction stepCreateValidAccountingTransaction
stepValidateClosedAccount stepValidateClosedAccount
stepCreateValidAccountingTransaction stepCreateValidAccountingTransaction
stepValidateNoAccounts""") stepValidateNoAccounts""", quiet=quiet)
def test_AccountingTransactionValidationBalanced(self, quiet=0, def test_AccountingTransactionValidationBalanced(self, quiet=QUIET,
run=RUN_ALL_TESTS): run=RUN_ALL_TESTS):
"""Transaction validation and balance""" """Transaction validation and balance"""
if not run : return if not run : return
...@@ -1203,9 +1204,9 @@ class TestAccounting(ERP5TypeTestCase): ...@@ -1203,9 +1204,9 @@ class TestAccounting(ERP5TypeTestCase):
stepCreateCurrencies stepCreateCurrencies
stepCreateAccounts stepCreateAccounts
stepCreateValidAccountingTransaction stepCreateValidAccountingTransaction
stepValidateNotBalanced""") stepValidateNotBalanced""", quiet=quiet)
def test_AccountingTransactionValidationPayment(self, quiet=0, def test_AccountingTransactionValidationPayment(self, quiet=QUIET,
run=RUN_ALL_TESTS): run=RUN_ALL_TESTS):
"""Transaction validation and payment""" """Transaction validation and payment"""
if not run : return if not run : return
...@@ -1215,9 +1216,9 @@ class TestAccounting(ERP5TypeTestCase): ...@@ -1215,9 +1216,9 @@ class TestAccounting(ERP5TypeTestCase):
stepCreateAccounts stepCreateAccounts
stepCreateValidAccountingTransaction stepCreateValidAccountingTransaction
stepValidateNoPayment stepValidateNoPayment
""") """, quiet=quiet)
def test_AccountingTransactionValidationRemoveEmptyLines(self, quiet=0, def test_AccountingTransactionValidationRemoveEmptyLines(self, quiet=QUIET,
run=RUN_ALL_TESTS): run=RUN_ALL_TESTS):
"""Transaction validation removes empty lines""" """Transaction validation removes empty lines"""
if not run : return if not run : return
...@@ -1227,7 +1228,7 @@ class TestAccounting(ERP5TypeTestCase): ...@@ -1227,7 +1228,7 @@ class TestAccounting(ERP5TypeTestCase):
stepCreateAccounts stepCreateAccounts
stepCreateValidAccountingTransaction stepCreateValidAccountingTransaction
stepValidateRemoveEmptyLines stepValidateRemoveEmptyLines
""") """, quiet=quiet)
if __name__ == '__main__': if __name__ == '__main__':
......
...@@ -99,13 +99,13 @@ class TestAccountingRulesMixin: ...@@ -99,13 +99,13 @@ class TestAccountingRulesMixin:
getattr(self.getPortal(), 'product_module')) getattr(self.getPortal(), 'product_module'))
## XXX move this to "Sequence class" ## XXX move this to "Sequence class"
def playSequence(self, sequence_string) : def playSequence(self, sequence_string, quiet=0) :
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self, quiet=quiet)
class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase): class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase):
""" """
This should test the simulation tree and builds starting from the This should test the simulation tree and builds starting from the
invoice. invoice.
...@@ -113,6 +113,7 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase): ...@@ -113,6 +113,7 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase):
""" """
RUN_ALL_TESTS = 1 RUN_ALL_TESTS = 1
QUIET = 1
RUN_BROKEN_TESTS = os.getenv('RUN_BROKEN_TESTS', 0) RUN_BROKEN_TESTS = os.getenv('RUN_BROKEN_TESTS', 0)
...@@ -149,6 +150,8 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase): ...@@ -149,6 +150,8 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase):
portal_type = 'Category', portal_type = 'Category',
id = cat, id = cat,
immediate_reindex = 1 ) immediate_reindex = 1 )
else:
path = getattr(path, cat)
# check categories have been created # check categories have been created
for cat_string in self.getCategoriesToCreate() : for cat_string in self.getCategoriesToCreate() :
self.assertNotEquals(None, self.assertNotEquals(None,
...@@ -289,7 +292,7 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase): ...@@ -289,7 +292,7 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase):
) )
def stepUpdateSaleInvoiceTransactionRuleMatrix(self, sequence, **kw) : def stepUpdateSaleInvoiceTransactionRuleMatrix(self, sequence, **kw) :
""" creates/updates the matrix of the sale invoice transacction rule """ """Creates/updates the matrix of the sale invoice transaction rule """
invoice_transaction_rule = sequence.get('invoice_transaction_rule') invoice_transaction_rule = sequence.get('invoice_transaction_rule')
base_id = 'movement' base_id = 'movement'
kwd = {'base_id': base_id} kwd = {'base_id': base_id}
...@@ -1393,7 +1396,7 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase): ...@@ -1393,7 +1396,7 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase):
accounting_line.getTotalQuantity()) accounting_line.getTotalQuantity())
def test_01_HasEverything(self, quiet=0, run=RUN_ALL_TESTS): def test_01_HasEverything(self, quiet=QUIET, run=RUN_ALL_TESTS):
""" check necessary tools and modules are present. """ """ check necessary tools and modules are present. """
if not run: if not run:
return return
...@@ -1412,7 +1415,7 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase): ...@@ -1412,7 +1415,7 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase):
self.failUnless(self.getProductModule() != None) self.failUnless(self.getProductModule() != None)
self.failUnless(self.getCurrencyModule() != None) self.failUnless(self.getCurrencyModule() != None)
def test_02_UpdateInvoiceTransactionRuleMatrix(self, quiet=0, def test_02_UpdateInvoiceTransactionRuleMatrix(self, quiet=QUIET,
run=RUN_ALL_TESTS): run=RUN_ALL_TESTS):
""" test edition of matrix and rule. """ test edition of matrix and rule.
Try to update the matrix after adding some predicates, Try to update the matrix after adding some predicates,
...@@ -1434,10 +1437,10 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase): ...@@ -1434,10 +1437,10 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase):
stepCheckRemovePredicate stepCheckRemovePredicate
stepTic stepTic
stepCheckRestoreOriginalPredicates stepCheckRestoreOriginalPredicates
""") """, quiet=quiet)
def test_03_invoiceTransactionRule_getMatchingCell(self, def test_03_invoiceTransactionRule_getMatchingCell(self,
quiet=0, run=RUN_ALL_TESTS): quiet=QUIET, run=RUN_ALL_TESTS):
""" test predicates for the cells of invoice transaction rule """ test predicates for the cells of invoice transaction rule
""" """
if not run: if not run:
...@@ -1461,9 +1464,9 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase): ...@@ -1461,9 +1464,9 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase):
stepCheckMatchableSaleInvoiceMovements stepCheckMatchableSaleInvoiceMovements
stepCreateNotMatchableSaleInvoiceMovements stepCreateNotMatchableSaleInvoiceMovements
stepCheckNotMatchableSaleInvoiceMovements stepCheckNotMatchableSaleInvoiceMovements
""") """, quiet=quiet)
def test_04_SimpleInvoice(self, quiet=0, run=RUN_ALL_TESTS): def test_04_SimpleInvoice(self, quiet=QUIET, run=RUN_ALL_TESTS):
""" Simple Invoice. """ Simple Invoice.
Try to expand an invoice containing only one simple Invoice Line. Try to expand an invoice containing only one simple Invoice Line.
Check that the build is correct. Check that the build is correct.
...@@ -1494,9 +1497,9 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase): ...@@ -1494,9 +1497,9 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase):
stepConfirmInvoice stepConfirmInvoice
stepTic stepTic
stepCheckAccountingLinesCoherantWithSimulation stepCheckAccountingLinesCoherantWithSimulation
""" ) """, quiet=quiet )
def test_04b_SimpleInvoiceConfirm(self, quiet=0, run=RUN_ALL_TESTS): def test_04b_SimpleInvoiceConfirm(self, quiet=QUIET, run=RUN_ALL_TESTS):
""" Same test as SimpleInvoice but directly confirm the invoice """ Same test as SimpleInvoice but directly confirm the invoice
without planning it """ without planning it """
if not run: if not run:
...@@ -1522,9 +1525,9 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase): ...@@ -1522,9 +1525,9 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase):
stepTic stepTic
stepCheckAccountingLinesCreatedForSimpleInvoice stepCheckAccountingLinesCreatedForSimpleInvoice
stepRebuildAndCheckNothingIsCreated stepRebuildAndCheckNothingIsCreated
""" ) """, quiet=quiet )
def test_04c_SimpleInvoiceTwoLines(self, quiet=0, run=RUN_ALL_TESTS): def test_04c_SimpleInvoiceTwoLines(self, quiet=QUIET, run=RUN_ALL_TESTS):
""" Simple Invoice, 2 lines. """ Simple Invoice, 2 lines.
Same test as SimpleInvoice but use 2 lines of quantity 5 instead of Same test as SimpleInvoice but use 2 lines of quantity 5 instead of
1 line of quantity 10. 1 line of quantity 10.
...@@ -1552,9 +1555,9 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase): ...@@ -1552,9 +1555,9 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase):
stepTic stepTic
stepCheckAccountingLinesCreatedForSimpleInvoice stepCheckAccountingLinesCreatedForSimpleInvoice
stepRebuildAndCheckNothingIsCreated stepRebuildAndCheckNothingIsCreated
""" ) """, quiet=quiet )
def test_04d_SimpleInvoiceTwoCells(self, quiet=0, run=RUN_ALL_TESTS): def test_04d_SimpleInvoiceTwoCells(self, quiet=QUIET, run=RUN_ALL_TESTS):
""" Simple Invoice, 2 cells. """ Simple Invoice, 2 cells.
Same test as SimpleInvoice but use 2 cells of quantity 5 instead of Same test as SimpleInvoice but use 2 cells of quantity 5 instead of
1 line of quantity 10. 1 line of quantity 10.
...@@ -1582,10 +1585,10 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase): ...@@ -1582,10 +1585,10 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase):
stepTic stepTic
stepCheckAccountingLinesCreatedForSimpleInvoice stepCheckAccountingLinesCreatedForSimpleInvoice
stepRebuildAndCheckNothingIsCreated stepRebuildAndCheckNothingIsCreated
""" ) """, quiet=quiet )
# next 5 tests will check update of applied rules. # next 5 tests will check update of applied rules.
def test_05a_SimpleInvoiceReExpandAddLine(self, quiet=0, def test_05a_SimpleInvoiceReExpandAddLine(self, quiet=QUIET,
run=RUN_ALL_TESTS): run=RUN_ALL_TESTS):
""" Add a new line then updateAppliedRule. """ Add a new line then updateAppliedRule.
Create an empty invoice, plan, add a line so that this Create an empty invoice, plan, add a line so that this
...@@ -1618,9 +1621,9 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase): ...@@ -1618,9 +1621,9 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase):
stepTic stepTic
stepCheckAccountingLinesCreatedForSimpleInvoice stepCheckAccountingLinesCreatedForSimpleInvoice
stepRebuildAndCheckNothingIsCreated stepRebuildAndCheckNothingIsCreated
""" ) """, quiet=quiet )
def test_05b_SimpleInvoiceReExpandEditLine(self, quiet=0, def test_05b_SimpleInvoiceReExpandEditLine(self, quiet=QUIET,
run = RUN_ALL_TESTS): run = RUN_ALL_TESTS):
""" Tests that editing a line updates simulation correctly """ """ Tests that editing a line updates simulation correctly """
if not run: if not run:
...@@ -1649,10 +1652,10 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase): ...@@ -1649,10 +1652,10 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase):
stepTic stepTic
stepCheckAccountingLinesCreatedForSimpleInvoice stepCheckAccountingLinesCreatedForSimpleInvoice
stepRebuildAndCheckNothingIsCreated stepRebuildAndCheckNothingIsCreated
""" ) """, quiet=quiet )
def test_05c_SimpleInvoiceReExpandDeleteLine( def test_05c_SimpleInvoiceReExpandDeleteLine(
self, quiet=0, run=RUN_ALL_TESTS): self, quiet=QUIET, run=RUN_ALL_TESTS):
""" Tests that removing a line updates simulation correctly """ """ Tests that removing a line updates simulation correctly """
if not run: if not run:
return return
...@@ -1682,9 +1685,9 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase): ...@@ -1682,9 +1685,9 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase):
stepTic stepTic
stepCheckAccountingLinesCreatedForSimpleInvoice stepCheckAccountingLinesCreatedForSimpleInvoice
stepRebuildAndCheckNothingIsCreated stepRebuildAndCheckNothingIsCreated
""" ) """, quiet=quiet )
def test_05d_SimpleInvoiceReExpandCreateCell(self, quiet=0, def test_05d_SimpleInvoiceReExpandCreateCell(self, quiet=QUIET,
run=RUN_ALL_TESTS): run=RUN_ALL_TESTS):
""" Tests that replacing a line by cells updates simulation correctly """ """ Tests that replacing a line by cells updates simulation correctly """
if not run: if not run:
...@@ -1713,10 +1716,10 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase): ...@@ -1713,10 +1716,10 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase):
stepTic stepTic
stepCheckAccountingLinesCreatedForSimpleInvoice stepCheckAccountingLinesCreatedForSimpleInvoice
stepRebuildAndCheckNothingIsCreated stepRebuildAndCheckNothingIsCreated
""") """, quiet=quiet)
def test_05e_SimpleInvoiceExpandManyTimes( def test_05e_SimpleInvoiceExpandManyTimes(
self, quiet=0, run=RUN_ALL_TESTS): self, quiet=QUIET, run=RUN_ALL_TESTS):
""" Tests that updating an applied rule many times doesn't break the """ Tests that updating an applied rule many times doesn't break the
build """ build """
if not run: if not run:
...@@ -1749,9 +1752,9 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase): ...@@ -1749,9 +1752,9 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase):
stepTic stepTic
stepCheckAccountingLinesCreatedForSimpleInvoice stepCheckAccountingLinesCreatedForSimpleInvoice
stepRebuildAndCheckNothingIsCreated stepRebuildAndCheckNothingIsCreated
""" ) """, quiet=quiet )
def test_06_MultiLineInvoice(self, quiet=0, run=RUN_ALL_TESTS): def test_06_MultiLineInvoice(self, quiet=QUIET, run=RUN_ALL_TESTS):
""" Multiple lines invoice. """ Multiple lines invoice.
Try to expand an invoice containing multiples Invoice Line. Try to expand an invoice containing multiples Invoice Line.
Check that the build is correct, ie similar movements are aggregated. Check that the build is correct, ie similar movements are aggregated.
...@@ -1783,9 +1786,9 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase): ...@@ -1783,9 +1786,9 @@ class TestAccountingRules(TestAccountingRulesMixin,ERP5TypeTestCase):
stepTic stepTic
stepCheckAccountingLinesCreatedForMultiLineInvoice stepCheckAccountingLinesCreatedForMultiLineInvoice
stepRebuildAndCheckNothingIsCreated stepRebuildAndCheckNothingIsCreated
""" ) """, quiet=quiet )
def test_07_PaymentRuleForSaleInvoice(self, quiet=0, run=RUN_ALL_TESTS): def test_07_PaymentRuleForSaleInvoice(self, quiet=QUIET, run=RUN_ALL_TESTS):
""" Payment Rule. """ Payment Rule.
checks the payment rule is applied on sale invoice simulation checks the payment rule is applied on sale invoice simulation
movement. """ movement. """
......
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