Пример #1
0
    def setUp(self):

        super(ActionViewTest, self).setUp()
        self._action = self._create_action()
        self.unloggable = self.create_user_unloggable("pluto")
        #Manually create notice types
        oa_notification.create_notice_types("","","")
Пример #2
0
    def setUp(self):
        super(ActionRequestModerationTest, self).setUp()
        #manually connect signal to handler
        action_moderation_request_submitted.connect(
            notify_action_moderation_request)
        action_moderation_request_processed.connect(
            notify_action_moderation_processed)
        #manually create notice types
        oa_notification.create_notice_types("", "", "")

        #for notice_type in NoticeType.objects.all():
        #    print "added notice_type %s" % notice_type

        self._action = self._create_action(title="Action N#1")

        self.follower = self.create_user(username='******')
        self._login(self.follower)
        self._action.compute_threshold()
        self._action.update_status(const.ACTION_STATUS_READY)

        self._POST(reverse('action-follow', args=(self._action.pk, )),
                   is_ajax=True)
Пример #3
0
    def setUp(self):
        super(ActionRequestModerationTest, self).setUp()
        #manually connect signal to handler 
        action_moderation_request_submitted.connect(notify_action_moderation_request)
        action_moderation_request_processed.connect(notify_action_moderation_processed)
        #manually create notice types
        oa_notification.create_notice_types("","","")

        #for notice_type in NoticeType.objects.all():
        #    print "added notice_type %s" % notice_type
        
        self._action = self._create_action(title="Action N#1")

        self.follower = self.create_user(username='******')
        self._login(self.follower)
        self._action.compute_threshold()
        self._action.update_status(const.ACTION_STATUS_READY)
        
        self._POST(
            reverse('action-follow', args=(self._action.pk,)),
            is_ajax=True
        )
Пример #4
0
 def setUp(self):
     super(OaNotificationTest, self).setUp()
     #manually connect signal to handler 
     post_action_status_update.connect(notify_post_status_update)
     #manually create notice types
     oa_notification.create_notice_types("","","")