Commit 0e74d63f authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

recreate predicate and accounting cells only without touching existing mapped...

recreate predicate and accounting cells only without touching existing mapped property or divergence testers.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33354 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 61f682a4
......@@ -507,9 +507,8 @@ class TestAccountingRules(TestAccountingRulesMixin, ERP5TypeTestCase):
# clear the message queue, so that it does not contains unexistant paths
self.tic()
payment_rule.deleteContent(
[x.getId() for x in payment_rule.objectValues() if \
x.getPortalType() == self.predicate_portal_type])
self.assertEquals(len(payment_rule.objectValues()), 1)
[x.getId() for x in payment_rule.objectValues(
portal_type=['Predicate', self.accounting_rule_cell_portal_type])])
transaction.commit()
# and add a new predicate
......
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