def setUp(self):
        """
        Initialize some data
        """

        clear_renderers()

        self.test_user_id = 1001  # some bogus user identifier
        self.msg_type = NotificationType(
            name="open-edx.edx_notifications.lib.tests.test_publisher",
            renderer="edx_notifications.renderers.basic.BasicSubjectBodyRenderer",
        )
        register_notification_type(self.msg_type)
Beispiel #2
0
    def setUp(self):
        """
        Initialize some data
        """

        clear_renderers()

        self.test_user_id = 1001  # some bogus user identifier
        self.msg_type = NotificationType(
            name='open-edx.edx_notifications.lib.tests.test_publisher',
            renderer='edx_notifications.renderers.basic.BasicSubjectBodyRenderer',
        )
        register_notification_type(self.msg_type)