Commit 014d3810 authored by Aurel's avatar Aurel

if a datetime is given to open a date, convert it to string


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20266 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6a155826
......@@ -665,6 +665,8 @@ class TestERP5BankingMixin:
portal_type=None, force_check=0):
if date is None:
date = DateTime().Date()
if not isinstance(date, str):
date = date.Date()
if site is None:
site = self.testsite
date_object = container.newContent(id=id, portal_type=portal_type,
......
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