diff --git a/product/ERP5/tests/testCalendar.py b/product/ERP5/tests/testCalendar.py index 8e00a36eb26d487d6ffe14ec085de6f69f86406f..77b47bf1ee94030e2ca439d296cefb02ba943164 100644 --- a/product/ERP5/tests/testCalendar.py +++ b/product/ERP5/tests/testCalendar.py @@ -921,6 +921,15 @@ class TestCalendar(ERP5ReportTestCase): from_date=DateTime(2008, 1, 1).earliestTime(), to_date=DateTime(2008, 1, 1).latestTime(), day=1)]) + # When calendar exception is modified, the assignments on this calendar are + # automatically updated. + exception.setExceptionDate(DateTime(2018, 2, 2)) + self.tic() + self.assertEqual([36000], [x.total_quantity + for x in person1.getAvailableTimeSequence( + from_date=DateTime(2008, 1, 1).earliestTime(), + to_date=DateTime(2008, 1, 1).latestTime(), + day=1)]) def test_GroupCalendarConstraint(self): group_calendar = self.portal.group_calendar_module.newContent(