Commit c30364ca authored by Aurel's avatar Aurel Committed by Aurel

the stop date is set to None with 1970,1,1 with new DateTime

parent 866a45e9
...@@ -1916,7 +1916,8 @@ class Base_getDialogSectionCategoryItemListTest(ERP5TypeTestCase): ...@@ -1916,7 +1916,8 @@ class Base_getDialogSectionCategoryItemListTest(ERP5TypeTestCase):
def test_only_valid_assignments_are_considered(self): def test_only_valid_assignments_are_considered(self):
self.person.newContent(portal_type='Assignment', group='main_group/sub_group').open() self.person.newContent(portal_type='Assignment', group='main_group/sub_group').open()
self.person.newContent(portal_type='Assignment', group='main_group', stop_date=DateTime(1970, 1, 1)).open() # XXX If set on 1970.1.1, the stop_date is None with new DateTime
self.person.newContent(portal_type='Assignment', group='main_group', stop_date=DateTime(1970, 1, 2)).open()
self.person.newContent(portal_type='Assignment', group='main_group') # left as draft self.person.newContent(portal_type='Assignment', group='main_group') # left as draft
self.tic() self.tic()
self.login(self.user_id) self.login(self.user_id)
......
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