Commit eb8c1c91 authored by Aurel's avatar Aurel

check that if we delete an object present in all catalog, it's

unindexed in all catalog


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17585 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9d69f553
......@@ -343,6 +343,13 @@ class TestArchive(InventoryAPITestCase):
self.tic()
self.assertEquals(100, getInventory(node=self.node.getRelativeUrl()))
# check if we unindex an object, it's remove in all catalog:
module.manage_delObjects([self.organisation_1.id,])
get_transaction().commit()
self.tic()
path_list = [self.organisation_1.getRelativeUrl()]
self.checkRelativeUrlNotInSQLPathList(path_list, connection_id=self.new_connection_id)
self.checkRelativeUrlNotInSQLPathList(path_list, connection_id=self.archive_connection_id)
def test_suite():
......
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