def afterSetUp(self):
     self.notif = TestedNotificationTool('notif', 'NotificationTool')
     self.notif.config['enable_instant'] = True
     self.notif.config['enable_daily'] = True
     self.notif.config['enable_weekly'] = True
     self.notif.config['enable_monthly'] = True
     self._notifications = []
     set_notif_testing_mode(True, save_to=self._notifications)
 def beforeTearDown(self):
     _notif = self.portal.portal_notification
     _notif.config.clear()
     _notif.config.update(self._original_config)
     _notif.config.update(self._original_config)
     self.portal.manage_delObjects(["notifol"])
     set_notif_testing_mode(False)
     transaction.commit()
 def afterSetUp(self):
     self.notif = TestedNotificationTool("notif", "NotificationTool")
     self.notif.config["enable_instant"] = True
     self.notif.config["enable_daily"] = True
     self.notif.config["enable_weekly"] = True
     self.notif.config["enable_monthly"] = True
     self._notifications = []
     set_notif_testing_mode(True, save_to=self._notifications)
Beispiel #4
0
 def afterSetUp(self):
     self._notifications = []
     set_notif_testing_mode(True, save_to=self._notifications)
     self.notif = self.portal.portal_notification
     self._original_config = dict(self.notif.config)
     self.notif.config['enable_instant'] = True
     self.notif.config['enable_daily'] = True
     self.notif.config['enable_weekly'] = True
     self.notif.config['enable_monthly'] = True
     addNyFolder(self.portal, 'notifol', contributor='contributor', submitted=1)
     addNyDocument(self.portal.notifol, id='notidoc',
         title='Notifying document', submitted=1, contributor='contributor')
Beispiel #5
0
 def afterSetUp(self):
     self._notifications = []
     set_notif_testing_mode(True, save_to=self._notifications)
     self.notif = self.portal.portal_notification
     self._original_config = dict(self.notif.config)
     self.notif.config["enable_instant"] = True
     self.notif.config["enable_daily"] = True
     self.notif.config["enable_weekly"] = True
     self.notif.config["enable_monthly"] = True
     addNyFolder(self.portal, "notifol", contributor="contributor", submitted=1)
     addNyDocument(
         self.portal.notifol, id="notidoc", title="Notifying document", submitted=1, contributor="contributor"
     )
Beispiel #6
0
 def beforeTearDown(self):
     self.portal.manage_delObjects(['notifol'])
     self.notif.config.clear()
     self.notif.config.update(self._original_config)
     set_notif_testing_mode(False)
 def beforeTearDown(self):
     set_notif_testing_mode(False)
     del self.notif