Commit 13ae0381 authored by Yoshinori Okuji's avatar Yoshinori Okuji

test_14_ReindexWithBrokenCategory was simply wrong; it must reindex the...

test_14_ReindexWithBrokenCategory was simply wrong; it must reindex the organisation before testing. The bug Jerome reported seems not to be present. Also, try to import get_transaction for Zope 2.8.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4437 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f3f628a4
......@@ -54,6 +54,11 @@ import os
from Products.ERP5Type import product_path
from DateTime import DateTime
try:
from transaction import get as get_transaction
except ImportError:
pass
class TestERP5Catalog(ERP5TypeTestCase):
"""
This is the list of test
......@@ -466,6 +471,10 @@ class TestERP5Catalog(ERP5TypeTestCase):
get_transaction().commit()
self.tic()
# Check catalog
organisation.reindexObject()
# Commit
get_transaction().commit()
self.tic()
sql = 'select count(*) from message'
result = sql_connection.manage_test(sql)
message_count = result[0]['COUNT(*)']
......
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