[Erp5-report] r7178 - /erp5/trunk/products/ERP5/tests/
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu May 11 02:30:11 CEST 2006
Author: jerome
Date: Thu May 11 02:30:05 2006
New Revision: 7178
URL: http://svn.erp5.org?rev=7178&view=rev
Log:
Call 'view' just to make sure UI is not completly broken
Modified:
erp5/trunk/products/ERP5/tests/testAccounting.py
erp5/trunk/products/ERP5/tests/testOrder.py
erp5/trunk/products/ERP5/tests/testPackingList.py
Modified: erp5/trunk/products/ERP5/tests/testAccounting.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testAccounting.py?rev=7178&r1=7177&r2=7178&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testAccounting.py (original)
+++ erp5/trunk/products/ERP5/tests/testAccounting.py Thu May 11 02:30:05 2006
@@ -291,6 +291,7 @@
for account in account_list :
account.validate()
+ self.failUnless('Site Error' not in account.view())
self.assertEquals(account.getValidationState(), 'validated')
sequence.edit( receivable_account = receivable,
@@ -606,6 +607,7 @@
portal = self.getPortal()
accounting_module = portal.accounting_module
+ self.failUnless('Site Error' not in accounting_module.view())
self.assertNotEquals(
len(portal.getPortalAccountingMovementTypeList()), 0)
self.assertNotEquals(
@@ -617,6 +619,7 @@
source_section_value = source_section_value,
destination_section_value = destination_section_value,
resource_value = resource_value )
+ self.failUnless('Site Error' not in accounting_transaction.view())
self.assertEquals( accounting_transaction.getSourceSectionValue(),
source_section_value )
self.assertEquals( accounting_transaction.getDestinationSectionValue(),
@@ -632,6 +635,7 @@
if line_portal_type in allowed_content_types :
line = accounting_transaction.newContent(
portal_type = line_portal_type, )
+ self.failUnless('Site Error' not in line.view())
# section and resource is acquired from parent transaction.
self.assertEquals( line.getDestinationSectionValue(),
destination_section_value )
Modified: erp5/trunk/products/ERP5/tests/testOrder.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testOrder.py?rev=7178&r1=7177&r2=7178&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testOrder.py (original)
+++ erp5/trunk/products/ERP5/tests/testOrder.py Thu May 11 02:30:05 2006
@@ -767,6 +767,7 @@
source_section_value = organisation1,
destination_value = organisation2,
destination_section_value = organisation2 )
+ self.failUnless('Site Error' not in order.view())
def stepCheckDeliveryBuilding(self, sequence=None, sequence_list=None, **kw):
"""
Modified: erp5/trunk/products/ERP5/tests/testPackingList.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testPackingList.py?rev=7178&r1=7177&r2=7178&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testPackingList.py (original)
+++ erp5/trunk/products/ERP5/tests/testPackingList.py Thu May 11 02:30:05 2006
@@ -147,6 +147,7 @@
"""
if packing_list is None:
packing_list = sequence.get('packing_list')
+ self.failUnless('Site Error' not in packing_list.view())
self.assertEquals('diverged', packing_list.getCausalityState())
def stepCheckNewPackingListIsDivergent(self, sequence=None, sequence_list=None, **kw):
@@ -154,6 +155,7 @@
Test if packing list is divergent
"""
packing_list = sequence.get('new_packing_list')
+ self.failUnless('Site Error' not in packing_list.view())
self.stepCheckPackingListIsDivergent(packing_list=packing_list,sequence=sequence)
def stepCheckPackingListIsCalculating(self, sequence=None, sequence_list=None, **kw):
@@ -519,12 +521,6 @@
self.stepCheckPackingListIsPacked(sequence=sequence,
packing_list=packing_list)
- def stepCommit(self, sequence=None, sequence_list=None, **kw):
- """
- Commit transaction
- """
- get_transaction().commit()
-
class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
More information about the Erp5-report
mailing list