[Erp5-report] ERP5 r25035: 2323 Tests, 5 Errors, 9 Failures
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jan 8 02:23:07 CET 2009
Test Suite: ERP5
Revision: 25035
Result: FAIL
All tests: 2323
Failures: 9
Errors: 5
The following tests failed:
testInvoice (3 failures)
test_accept_quantity_divergence_on_invoice_with_started_packing_list (testInvoice.TestSaleInvoice)
test_adopt_quantity_divergence_on_invoice_line_with_stopped_packing_list (testInvoice.TestSaleInvoice)
test_adopt_quantity_divergence_on_invoice_line_with_stopped_packing_list (testInvoice.TestPurchaseInvoice)
testSQLCachedWorklist (1 errors)
test_02_related_key (testSQLCachedWorklist.TestSQLCachedWorklist)
testInventoryAPI (1 errors)
test_14_TwoInventoryWithSameDateAndResourceAndNode (testInventoryAPI.TestInventoryDocument)
testTemplate (3 errors)
test_Template (testTemplate.TestTemplate)
test_TemplateCreatePreference (testTemplate.TestTemplate)
test_TemplateNotIndexable (testTemplate.TestTemplate)
testERP5Catalog (5 failures)
test_SearchedStringIsNotStripped (testERP5Catalog.TestERP5Catalog)
test_SubDocumentsWithAcquireLocalRoleSecurityIndexing (testERP5Catalog.TestERP5Catalog)
test_complex_query (testERP5Catalog.TestERP5Catalog)
test_multipleRelatedKeyDoMultipleJoins (testERP5Catalog.TestERP5Catalog)
test_sortOnRelatedKeyWithUnsetRelation (testERP5Catalog.TestERP5Catalog)
testCMFActivity (1 failures)
test_115_checkProcessShutdown (testCMFActivity.TestCMFActivity)
-------------- next part --------------
FAIL: test_accept_quantity_divergence_on_invoice_with_started_packing_list (testInvoice.TestSaleInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/erp5/lib/python/Testing/ZopeTestCase/profiler.py", line 98, in __call__
testMethod()
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5/tests/testInvoice.py", line 3050, in test_accept_quantity_divergence_on_invoice_with_started_packing_list
self.assertEquals([], packing_list.getDivergenceList())
AssertionError: [] != [<DivergenceMessage object at 0x4c07a28
'decision_value': 99.0
'divergence_scope': 'quantity'
'prevision_value': 198.0
'mapping': {}
'object_relative_url': 'sale_packing_list_module/27/1'
'simulation_movement': <SimulationMovement at /erp5_portal_a174109070484412d0b29b9390210103/portal_simulation/31/1>
'tested_property': 'quantity'
'message': 'Quantity'>]
FAIL: test_adopt_quantity_divergence_on_invoice_line_with_stopped_packing_list (testInvoice.TestSaleInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/erp5/lib/python/Testing/ZopeTestCase/profiler.py", line 98, in __call__
testMethod()
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5/tests/testInvoice.py", line 1233, in test_adopt_quantity_divergence_on_invoice_line_with_stopped_packing_list
len(invoice.getMovementList(portal_type=self.invoice_transaction_line_portal_type)))
AssertionError: 0 != 1
FAIL: test_adopt_quantity_divergence_on_invoice_line_with_stopped_packing_list (testInvoice.TestPurchaseInvoice)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/erp5/lib/python/Testing/ZopeTestCase/profiler.py", line 98, in __call__
testMethod()
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5/tests/testInvoice.py", line 1233, in test_adopt_quantity_divergence_on_invoice_line_with_stopped_packing_list
len(invoice.getMovementList(portal_type=self.invoice_transaction_line_portal_type)))
AssertionError: 0 != 1
ERROR: test_02_related_key (testSQLCachedWorklist.TestSQLCachedWorklist)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/erp5/lib/python/Testing/ZopeTestCase/profiler.py", line 98, in __call__
testMethod()
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5/tests/testWorklist.py", line 367, in test_02_related_key
result = workflow_tool.listActions(object=document)
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5Type/patches/WorkflowTool.py", line 554, in WorkflowTool_listActions
actions.extend(_getWorklistActionList())
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5Type/Cache.py", line 202, in __call__
value = cache_factory(
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5Type/Cache.py", line 109, in __call__
value = callable_object(*args, **kwd)
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5Type/patches/WorkflowTool.py", line 520, in _getWorklistActionList
src__=src__)
File "/usr/lib/erp5/lib/python/Shared/DC/Scripts/Bindings.py", line 311, in __call__
return self._bindAndExec(args, kw, None)
File "/usr/lib/erp5/lib/python/Shared/DC/Scripts/Bindings.py", line 348, in _bindAndExec
return self._exec(bound_data, args, kw)
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 999, in _exec
return PythonScript_exec(self, *args)
File "/usr/lib/erp5/lib/python/Products/PythonScripts/PythonScript.py", line 324, in _exec
result = f(*args, **kw)
File "Script (Python)", line 20, in Base_getCountFromWorklistTable
File "/usr/lib/erp5/lib/python/AccessControl/ZopeGuards.py", line 341, in guarded_apply
return builtin_guarded_apply(func, args, kws)
File "/usr/lib/erp5/lib/python/AccessControl/ZopeGuards.py", line 363, in builtin_guarded_apply
return func(*arglist, **argdict)
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5Type/patches/DA.py", line 220, in DA__call__
result=DB__.query(query, self.max_rows_)
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ZMySQLDA/db.py", line 295, in query
return self._access_db(method_id='query', args=args, kw=kw)
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ZMySQLDA/db.py", line 286, in _access_db
return getattr(db, method_id)(*args, **kw)
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ZMySQLDA/db.py", line 421, in query
c = self._query(qs)
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ZMySQLDA/db.py", line 396, in _query
raise OperationalError(m[0], '%s: %s' % (m[1], query))
OperationalError: (1054, "Unknown column 'base_category_id' in 'field list': SELECT\n sum(`count`) as count, base_category_id, viewable_owner, portal_type, security_uid\nFROM\n worklist_cache\nWHERE\n ((((security_uid IN (1, 2, 3, 4, 5, 6, 7, 8, 10, 12)) AND (((((portal_type = 'Organisation') AND ((((((NOT (viewable_owner = 'manager'))) AND (((((base_category_id IN ('region', 'role')))))))))))))))))\nGROUP BY\n base_category_id, viewable_owner, portal_type, security_uid LIMIT 1000")
ERROR: test_14_TwoInventoryWithSameDateAndResourceAndNode (testInventoryAPI.TestInventoryDocument)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/erp5/lib/python/Testing/ZopeTestCase/profiler.py", line 98, in __call__
testMethod()
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5/tests/testInventoryAPI.py", line 2057, in test_14_TwoInventoryWithSameDateAndResourceAndNode
new_inventory = inventory.Base_createCloneDocument(batch_mode=1)
File "/usr/lib/erp5/lib/python/Shared/DC/Scripts/Bindings.py", line 311, in __call__
return self._bindAndExec(args, kw, None)
File "/usr/lib/erp5/lib/python/Shared/DC/Scripts/Bindings.py", line 348, in _bindAndExec
return self._exec(bound_data, args, kw)
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 999, in _exec
return PythonScript_exec(self, *args)
File "/usr/lib/erp5/lib/python/Products/PythonScripts/PythonScript.py", line 324, in _exec
result = f(*args, **kw)
File "Script (Python)", line 44, in Base_createCloneDocument
File "/usr/lib/erp5/lib/python/OFS/CopySupport.py", line 196, in manage_pasteObjects
ob.manage_afterClone(ob)
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5Type/CopySupport.py", line 299, in manage_afterClone
script()
File "/usr/lib/erp5/lib/python/Shared/DC/Scripts/Bindings.py", line 311, in __call__
return self._bindAndExec(args, kw, None)
File "/usr/lib/erp5/lib/python/Shared/DC/Scripts/Bindings.py", line 348, in _bindAndExec
return self._exec(bound_data, args, kw)
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 999, in _exec
return PythonScript_exec(self, *args)
File "/usr/lib/erp5/lib/python/Products/PythonScripts/PythonScript.py", line 324, in _exec
result = f(*args, **kw)
File "Script (Python)", line 2, in Delivery_afterClone
File "/usr/lib/erp5/lib/python/AccessControl/ZopeGuards.py", line 284, in guarded_import
raise ImportError, ('import of "%s" from "%s" is unauthorized. %s'
ImportError: import of "aq_base" from "Acquisition" is unauthorized. You are not allowed to access 'aq_base' in this context
ERROR: test_Template (testTemplate.TestTemplate)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/erp5/lib/python/Testing/ZopeTestCase/profiler.py", line 98, in __call__
testMethod()
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5/tests/testTemplate.py", line 80, in test_Template
document.Base_makeTemplateFromDocument(form_id=None)
File "/usr/lib/erp5/lib/python/Shared/DC/Scripts/Bindings.py", line 311, in __call__
return self._bindAndExec(args, kw, None)
File "/usr/lib/erp5/lib/python/Shared/DC/Scripts/Bindings.py", line 348, in _bindAndExec
return self._exec(bound_data, args, kw)
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 999, in _exec
return PythonScript_exec(self, *args)
File "/usr/lib/erp5/lib/python/Products/PythonScripts/PythonScript.py", line 324, in _exec
result = f(*args, **kw)
File "Script (Python)", line 13, in Base_makeTemplateFromDocument
File "/usr/lib/erp5/lib/python/OFS/CopySupport.py", line 196, in manage_pasteObjects
ob.manage_afterClone(ob)
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5Type/CopySupport.py", line 299, in manage_afterClone
script()
File "/usr/lib/erp5/lib/python/Shared/DC/Scripts/Bindings.py", line 311, in __call__
return self._bindAndExec(args, kw, None)
File "/usr/lib/erp5/lib/python/Shared/DC/Scripts/Bindings.py", line 348, in _bindAndExec
return self._exec(bound_data, args, kw)
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 999, in _exec
return PythonScript_exec(self, *args)
File "/usr/lib/erp5/lib/python/Products/PythonScripts/PythonScript.py", line 324, in _exec
result = f(*args, **kw)
File "Script (Python)", line 2, in Delivery_afterClone
File "/usr/lib/erp5/lib/python/AccessControl/ZopeGuards.py", line 284, in guarded_import
raise ImportError, ('import of "%s" from "%s" is unauthorized. %s'
ImportError: import of "aq_base" from "Acquisition" is unauthorized. You are not allowed to access 'aq_base' in this context
ERROR: test_TemplateCreatePreference (testTemplate.TestTemplate)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/erp5/lib/python/Testing/ZopeTestCase/profiler.py", line 98, in __call__
testMethod()
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5/tests/testTemplate.py", line 122, in test_TemplateCreatePreference
document.Base_makeTemplateFromDocument(form_id=None)
File "/usr/lib/erp5/lib/python/Shared/DC/Scripts/Bindings.py", line 311, in __call__
return self._bindAndExec(args, kw, None)
File "/usr/lib/erp5/lib/python/Shared/DC/Scripts/Bindings.py", line 348, in _bindAndExec
return self._exec(bound_data, args, kw)
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 999, in _exec
return PythonScript_exec(self, *args)
File "/usr/lib/erp5/lib/python/Products/PythonScripts/PythonScript.py", line 324, in _exec
result = f(*args, **kw)
File "Script (Python)", line 13, in Base_makeTemplateFromDocument
File "/usr/lib/erp5/lib/python/OFS/CopySupport.py", line 196, in manage_pasteObjects
ob.manage_afterClone(ob)
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5Type/CopySupport.py", line 299, in manage_afterClone
script()
File "/usr/lib/erp5/lib/python/Shared/DC/Scripts/Bindings.py", line 311, in __call__
return self._bindAndExec(args, kw, None)
File "/usr/lib/erp5/lib/python/Shared/DC/Scripts/Bindings.py", line 348, in _bindAndExec
return self._exec(bound_data, args, kw)
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 999, in _exec
return PythonScript_exec(self, *args)
File "/usr/lib/erp5/lib/python/Products/PythonScripts/PythonScript.py", line 324, in _exec
result = f(*args, **kw)
File "Script (Python)", line 2, in Delivery_afterClone
File "/usr/lib/erp5/lib/python/AccessControl/ZopeGuards.py", line 284, in guarded_import
raise ImportError, ('import of "%s" from "%s" is unauthorized. %s'
ImportError: import of "aq_base" from "Acquisition" is unauthorized. You are not allowed to access 'aq_base' in this context
ERROR: test_TemplateNotIndexable (testTemplate.TestTemplate)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/erp5/lib/python/Testing/ZopeTestCase/profiler.py", line 98, in __call__
testMethod()
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5/tests/testTemplate.py", line 158, in test_TemplateNotIndexable
document.Base_makeTemplateFromDocument(form_id=None)
File "/usr/lib/erp5/lib/python/Shared/DC/Scripts/Bindings.py", line 311, in __call__
return self._bindAndExec(args, kw, None)
File "/usr/lib/erp5/lib/python/Shared/DC/Scripts/Bindings.py", line 348, in _bindAndExec
return self._exec(bound_data, args, kw)
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 999, in _exec
return PythonScript_exec(self, *args)
File "/usr/lib/erp5/lib/python/Products/PythonScripts/PythonScript.py", line 324, in _exec
result = f(*args, **kw)
File "Script (Python)", line 13, in Base_makeTemplateFromDocument
File "/usr/lib/erp5/lib/python/OFS/CopySupport.py", line 196, in manage_pasteObjects
ob.manage_afterClone(ob)
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5Type/CopySupport.py", line 299, in manage_afterClone
script()
File "/usr/lib/erp5/lib/python/Shared/DC/Scripts/Bindings.py", line 311, in __call__
return self._bindAndExec(args, kw, None)
File "/usr/lib/erp5/lib/python/Shared/DC/Scripts/Bindings.py", line 348, in _bindAndExec
return self._exec(bound_data, args, kw)
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 999, in _exec
return PythonScript_exec(self, *args)
File "/usr/lib/erp5/lib/python/Products/PythonScripts/PythonScript.py", line 324, in _exec
result = f(*args, **kw)
File "Script (Python)", line 2, in Delivery_afterClone
File "/usr/lib/erp5/lib/python/AccessControl/ZopeGuards.py", line 284, in guarded_import
raise ImportError, ('import of "%s" from "%s" is unauthorized. %s'
ImportError: import of "aq_base" from "Acquisition" is unauthorized. You are not allowed to access 'aq_base' in this context
FAIL: test_SearchedStringIsNotStripped (testERP5Catalog.TestERP5Catalog)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/erp5/lib/python/Testing/ZopeTestCase/profiler.py", line 98, in __call__
testMethod()
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5Catalog/tests/testERP5Catalog.py", line 2715, in test_SearchedStringIsNotStripped
compareSet(' foo', [second_doc])
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5Catalog/tests/testERP5Catalog.py", line 2713, in compareSet
self.assertSameSet(document_list, [x.getObject() for x in result])
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 558, in failIfDifferentSet
self.failUnless(i in b, msg)
AssertionError: [<Organisation at /erp5_portal_87898169f8a6babfe15e14cbf4d59bab/organisation_module/90>] != [<Organisation at /erp5_portal_87898169f8a6babfe15e14cbf4d59bab/organisation_module/89>]
FAIL: test_SubDocumentsWithAcquireLocalRoleSecurityIndexing (testERP5Catalog.TestERP5Catalog)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/erp5/lib/python/Testing/ZopeTestCase/profiler.py", line 98, in __call__
testMethod()
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5Catalog/tests/testERP5Catalog.py", line 1974, in test_SubDocumentsWithAcquireLocalRoleSecurityIndexing
self.assertSameSet([obj, ], [x.getObject() for x in result])
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 558, in failIfDifferentSet
self.failUnless(i in b, msg)
AssertionError: [<Url at /erp5_portal_87898169f8a6babfe15e14cbf4d59bab/organisation_module/92/1>] != []
FAIL: test_complex_query (testERP5Catalog.TestERP5Catalog)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/erp5/lib/python/Testing/ZopeTestCase/profiler.py", line 98, in __call__
testMethod()
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5Catalog/tests/testERP5Catalog.py", line 2261, in test_complex_query
self.assertEqual(len(catalog(query=query)), 3)
AssertionError: 2 != 3
FAIL: test_multipleRelatedKeyDoMultipleJoins (testERP5Catalog.TestERP5Catalog)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/erp5/lib/python/Testing/ZopeTestCase/profiler.py", line 98, in __call__
testMethod()
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5Catalog/tests/testERP5Catalog.py", line 2821, in test_multipleRelatedKeyDoMultipleJoins
operator='AND'))
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5Catalog/tests/testERP5Catalog.py", line 2779, in check
'%s:\nExpected: %r\nGot: %r' % (description,
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5Type/tests/ERP5TypeTestCase.py", line 558, in failIfDifferentSet
self.failUnless(i in b, msg)
AssertionError: site_reference="foo" AND site_description="bar":
Expected: ['object_1', 'object_12', 'object_13', 'object_14', 'object_23']
Got: ['object_14', 'object_13', 'object_12', 'object_1']
FAIL: test_sortOnRelatedKeyWithUnsetRelation (testERP5Catalog.TestERP5Catalog)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/erp5/lib/python/Testing/ZopeTestCase/profiler.py", line 98, in __call__
testMethod()
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/ERP5Catalog/tests/testERP5Catalog.py", line 2756, in test_sortOnRelatedKeyWithUnsetRelation
len(person_module.searchFolder(sort_on=[('subordination_title', 'ascending')])))
AssertionError: 2 != 1
FAIL: test_115_checkProcessShutdown (testCMFActivity.TestCMFActivity)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/erp5/lib/python/Testing/ZopeTestCase/profiler.py", line 98, in __call__
testMethod()
File "/home/buildbot/buildbot_slave/full.ERP5/build/unit_test/Products/CMFActivity/tests/testCMFActivity.py", line 3175, in test_115_checkProcessShutdown
self.assertEqual(len(message_list), 1)
AssertionError: 0 != 1
More information about the Erp5-report
mailing list