From a5466329609893c32cf59397afaa7e77a45e48e4 Mon Sep 17 00:00:00 2001 From: Nicolas Dumazet <nicolas.dumazet@nexedi.com> Date: Fri, 4 Feb 2011 10:55:49 +0000 Subject: [PATCH] force a commit, so that accessors are generated. (Previously, aq_reset was run synchronously, whereas now regeneration happens as a before commit hook) git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43034 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testCalendar.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/product/ERP5/tests/testCalendar.py b/product/ERP5/tests/testCalendar.py index 94b9190672..dd446cddce 100644 --- a/product/ERP5/tests/testCalendar.py +++ b/product/ERP5/tests/testCalendar.py @@ -96,6 +96,9 @@ class TestCalendar(ERP5ReportTestCase): self._addPropertySheet('Presence Request Period', 'CalendarPeriodConstraint') self._addPropertySheet('Group Presence Period', 'CalendarPeriodConstraint') + # regenerate accessors after category changes & portal type changes + transaction.commit() + def beforeTearDown(self): transaction.abort() for module in (self.portal.group_calendar_module, -- 2.30.9