Commit 5d65b762 authored by Jérome Perrin's avatar Jérome Perrin

Call 'view' just to make sure UI is not completly broken



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7178 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 401950a9
......@@ -291,6 +291,7 @@ class TestAccounting(ERP5TypeTestCase):
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 @@ class TestAccounting(ERP5TypeTestCase):
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 @@ class TestAccounting(ERP5TypeTestCase):
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 @@ class TestAccounting(ERP5TypeTestCase):
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 )
......
......@@ -767,6 +767,7 @@ class TestOrderMixin:
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):
"""
......
......@@ -147,6 +147,7 @@ class TestPackingListMixin(TestOrderMixin):
"""
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 @@ class TestPackingListMixin(TestOrderMixin):
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 @@ class TestPackingListMixin(TestOrderMixin):
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) :
......
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