From a2301c1b039f3d94c10004cf8b836a5c1fd12a7f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Mon, 21 Mar 2011 13:01:27 +0000
Subject: [PATCH] remove tests for invoice transaction rule iself, we no longer
 use that.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44467 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/tests/testAccountingRules.py | 86 -----------------------
 1 file changed, 86 deletions(-)

diff --git a/product/ERP5/tests/testAccountingRules.py b/product/ERP5/tests/testAccountingRules.py
index c0ec676570..859e515bdc 100644
--- a/product/ERP5/tests/testAccountingRules.py
+++ b/product/ERP5/tests/testAccountingRules.py
@@ -1644,84 +1644,6 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase):
       simulation_movement.getPrice()
     )
 
-  def test_01_HasEverything(self, quiet=QUIET, run=RUN_ALL_TESTS):
-    """ check necessary tools and modules are present. """
-    if not run:
-      return
-    if not quiet:
-      ZopeTestCase._print('\nTest Has Everything ')
-      LOG('Testing... ', INFO, 'testHasEverything')
-    self.failUnless(self.getCategoryTool() != None)
-    self.failUnless(self.getSimulationTool() != None)
-    self.failUnless(self.getTypeTool() != None)
-    self.failUnless(self.getSQLConnection() != None)
-    self.failUnless(self.getCatalogTool() != None)
-    self.failUnless(self.getRuleTool() != None)
-    self.failUnless(self.getAccountModule() != None)
-    self.failUnless(self.getAccountingModule() != None)
-    self.failUnless(self.getOrganisationModule() != None)
-    self.failUnless(self.getProductModule() != None)
-    self.failUnless(self.getCurrencyModule() != None)
-
-  @newSimulationExpectedFailure
-  def test_02_UpdateInvoiceTransactionRuleMatrix(self, quiet=QUIET,
-                                              run=RUN_ALL_TESTS):
-    """ test edition of matrix and rule.
-    Try to update the matrix after adding some predicates,
-    and check if all objects were created
-    """
-    if not run:
-      return
-    if not quiet:
-      message = 'Test Update Invoice Transaction Rule Matrix'
-      ZopeTestCase._print('\n%s ' % message)
-      LOG('Testing... ', INFO, message)
-
-    self.playSequence("""
-      stepCreateInvoiceTransactionRule
-      stepUpdateInvoiceTransactionRuleMatrix
-      stepCreatePaymentRule
-      stepUpdatePaymentRuleMatrix
-      stepValidateInvoiceTransaction
-      stepTic
-      stepCheckAddPredicate
-      stepTic
-      stepCheckRemovePredicate
-      stepTic
-      stepCheckRestoreOriginalPredicates
-    """, quiet=quiet)
-
-  @newSimulationExpectedFailure
-  def test_03_invoiceTransactionRule_getMatchingCell(self,
-                                    quiet=QUIET, run=RUN_ALL_TESTS):
-    """ test predicates for the cells of invoice transaction rule
-    """
-    if not run:
-      return
-    if not quiet:
-      message = 'Test Invoice Transaction Rule getMatchingCell '
-      ZopeTestCase._print('\n%s ' % message)
-      LOG('Testing... ', INFO, message)
-
-    self.playSequence("""
-      stepCreateAccounts
-      stepCreateEntities
-      stepCreateCurrencies
-      stepTic
-      stepCreateInvoiceTransactionRule
-      stepUpdateInvoiceTransactionRuleMatrix
-      stepCreatePaymentRule
-      stepUpdatePaymentRuleMatrix
-      stepValidateInvoiceTransaction
-      stepCreateProducts
-      stepTic
-      stepCreateDummyInvoice
-      stepCreateMatchableInvoiceMovements
-      stepCheckMatchableInvoiceMovements
-      stepCreateNotMatchableInvoiceMovements
-      stepCheckNotMatchableInvoiceMovements
-    """, quiet=quiet)
-
   @newSimulationExpectedFailure
   def test_04_SimpleInvoice(self, quiet=QUIET, run=RUN_ALL_TESTS):
     """ Simple Invoice.
@@ -2124,14 +2046,6 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase):
       stepRebuildAndCheckNothingIsCreated
       """, quiet=quiet )
 
-  def TODO_test_07_PaymentRuleForInvoice(self, quiet=QUIET, run=RUN_ALL_TESTS):
-    """ Payment Rule.
-      checks the payment rule is applied on invoice simulation
-      movement. """
-    # checks :
-    #   date from trade condition
-    #   quantity from sum of receivable movement
-    #   link to sale invoice
 
   @newSimulationExpectedFailure
   def test_planning_invoice_creates_simulation(self, quiet=QUIET):
-- 
2.30.9