Commit 9c3c6430 authored by Łukasz Nowak's avatar Łukasz Nowak

Pass future accounting date to alarm.

parent dac221ca
...@@ -10,7 +10,7 @@ import re ...@@ -10,7 +10,7 @@ import re
import xml_marshaller import xml_marshaller
from AccessControl.SecurityManagement import getSecurityManager, \ from AccessControl.SecurityManagement import getSecurityManager, \
setSecurityManager setSecurityManager
from DateTime import DateTime
def changeSkin(skin_name): def changeSkin(skin_name):
def decorator(func): def decorator(func):
...@@ -627,7 +627,8 @@ class TestSlapOSDefaultScenario(TestSlapOSSecurityMixin): ...@@ -627,7 +627,8 @@ class TestSlapOSDefaultScenario(TestSlapOSSecurityMixin):
self.tic() self.tic()
# deliver aggregated deliveries # deliver aggregated deliveries
self.stepCallSlaposDeliverConfirmedAggregatedSalePackingListAlarm() self.stepCallSlaposDeliverConfirmedAggregatedSalePackingListAlarm(
accounting_date=DateTime('2222/01/01'))
self.tic() self.tic()
# stabilise aggregated deliveries and expand them # stabilise aggregated deliveries and expand them
......
111 112
\ No newline at end of file \ No newline at end of file
...@@ -181,7 +181,7 @@ class testVifibMixin(ERP5TypeTestCase): ...@@ -181,7 +181,7 @@ class testVifibMixin(ERP5TypeTestCase):
sm = getSecurityManager() sm = getSecurityManager()
self.login() self.login()
try: try:
alarm.activeSense() alarm.activeSense(*args, **kwargs)
transaction.commit() transaction.commit()
finally: finally:
setSecurityManager(sm) setSecurityManager(sm)
......
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