@@ -0,0 +1,855 @@
+%22%22%22%0AImplement a NullNotificationChannel which basically sinks any notification publishing.%0AThis can be used when a system does not want to actually transmit a particular%0ANotificationType%0A%22%22%22%0A%0Afrom edx_notifications.channels.channel import BaseNotificationChannelProvider%0A%0A%0Aclass NullNotificationChannel(BaseNotificationChannelProvider):%0A    %22%22%22%0A    A NotificationChannel which drops all notifications. This is useful for shunting%0A    NotificationMessages%0A    %22%22%22%0A%0A    def dispatch_notification_to_user(self, user_id, msg):%0A        %22%22%22%0A        Will not send the msg to the user_id%0A        %22%22%22%0A%0A        return None%0A%0A    def bulk_dispatch_notification(self, user_ids, msg):%0A        %22%22%22%0A        Will not send the msg to the list of users%0A        %22%22%22%0A%0A        # we did not send any, so return zero as a count of number of%0A        # dispatches%0A        return 0%0A

add a NullNotificationChannel for cases where we want to intentionally drop notifications