Example #1
0
 def test_notifications_enabled(self):
     PushNotificationConfig(enabled=True).save()
     self.assertTrue(PushNotificationConfig.is_enabled())
Example #2
0
 def test_notifications_defaults(self):
     self.assertFalse(PushNotificationConfig.is_enabled())
Example #3
0
 def test_notifications_defaults(self):
     self.assertFalse(PushNotificationConfig.is_enabled())
Example #4
0
def push_notification_enabled():
    """
    Returns whether the push notification feature is enabled.
    """
    return PushNotificationConfig.is_enabled()
Example #5
0
 def test_notifications_enabled(self):
     PushNotificationConfig(enabled=True).save()
     self.assertTrue(PushNotificationConfig.is_enabled())