Commit 691c77ac authored by Rafael Monnerat's avatar Rafael Monnerat

Fixup event start date

See merge request !427
parents 2773290b 33b05bcd
Pipeline #23677 failed with stage
in 0 seconds
...@@ -136,6 +136,8 @@ class TestSlapOSCoreTicketSlapInterfaceWorkflow(SlapOSTestCaseMixin): ...@@ -136,6 +136,8 @@ class TestSlapOSCoreTicketSlapInterfaceWorkflow(SlapOSTestCaseMixin):
self.assertEqual(event.getPortalType(), "Web Message") self.assertEqual(event.getPortalType(), "Web Message")
self.assertEqual(event.getDestination(), self.assertEqual(event.getDestination(),
self.support_request.getSource()) self.support_request.getSource())
self.assertNotEqual(event.getStartDate(),
None)
def test_SupportRequest_notify_noParameter(self): def test_SupportRequest_notify_noParameter(self):
self.assertRaises(TypeError, self.support_request.notify) self.assertRaises(TypeError, self.support_request.notify)
...@@ -179,6 +181,8 @@ class TestSlapOSCoreTicketSlapInterfaceWorkflow(SlapOSTestCaseMixin): ...@@ -179,6 +181,8 @@ class TestSlapOSCoreTicketSlapInterfaceWorkflow(SlapOSTestCaseMixin):
self.support_request.getDestinationDecision()) self.support_request.getDestinationDecision())
self.assertEqual(event.getDestination(), self.assertEqual(event.getDestination(),
self.support_request.getSourceSection()) self.support_request.getSourceSection())
self.assertNotEqual(event.getStartDate(),
None)
# Retry now to see if doesn't create a new message # Retry now to see if doesn't create a new message
self.support_request.notify( self.support_request.notify(
......
...@@ -15,6 +15,7 @@ except KeyError: ...@@ -15,6 +15,7 @@ except KeyError:
web_message = portal.event_module.newContent( web_message = portal.event_module.newContent(
portal_type="Web Message", portal_type="Web Message",
start_date = DateTime(),
title=title, title=title,
text_content=text_content, text_content=text_content,
source=source, source=source,
......
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