[Erp5-report] r31523 kazuhiko - /erp5/trunk/products/ERP5/tests/testERP5Simulation.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Dec 29 17:37:28 CET 2009
Author: kazuhiko
Date: Tue Dec 29 17:37:26 2009
New Revision: 31523
URL: http://svn.erp5.org?rev=31523&view=rev
Log:
oops, test invalidation should be done in afterSetUp() otherwise TestPackingListMixin.afterSetUp() will validate all existing rules.
Modified:
erp5/trunk/products/ERP5/tests/testERP5Simulation.py
Modified: erp5/trunk/products/ERP5/tests/testERP5Simulation.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testERP5Simulation.py?rev=31523&r1=31522&r2=31523&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testERP5Simulation.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testERP5Simulation.py [utf8] Tue Dec 29 17:37:26 2009
@@ -45,13 +45,11 @@
def afterSetUp(self, quiet=1, run=1):
TestPackingListMixin.afterSetUp(self, quiet, run)
- self.validateNewRules()
-
- def beforeTearDown(self):
portal_rules = self.portal.portal_rules
for rule in portal_rules.objectValues(portal_type='New Order Rule'):
if rule.getValidationState() == 'validated':
rule.invalidate()
+ self.validateNewRules()
class TestERP5Simulation(TestERP5SimulationMixin, ERP5TypeTestCase):
run_all_test = 1
More information about the Erp5-report
mailing list