Commit c437f3c4 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

modify the way to remove objects to avoid KeyError.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33421 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6ac5fc55
...@@ -51,8 +51,7 @@ class TestDivergenceTester(TestPackingListMixin, ERP5TypeTestCase): ...@@ -51,8 +51,7 @@ class TestDivergenceTester(TestPackingListMixin, ERP5TypeTestCase):
rule = getattr(self.getPortal().portal_rules, self.rule_id) rule = getattr(self.getPortal().portal_rules, self.rule_id)
tester_list = rule.contentValues( tester_list = rule.contentValues(
portal_type=rule.getPortalDivergenceTesterTypeList()) portal_type=rule.getPortalDivergenceTesterTypeList())
rule.manage_delObjects( rule.deleteContent([x.getId() for x in tester_list])
uids=[x.getUid() for x in tester_list])
def bootstrapSite(self): def bootstrapSite(self):
""" """
......
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