コード例 #1
0
ファイル: tests.py プロジェクト: cmscom/edx-platform
 def test_notifications_enabled(self):
     PushNotificationConfig(enabled=True).save()
     self.assertTrue(PushNotificationConfig.is_enabled())
コード例 #2
0
ファイル: tests.py プロジェクト: cmscom/edx-platform
 def test_notifications_defaults(self):
     self.assertFalse(PushNotificationConfig.is_enabled())
コード例 #3
0
 def test_notifications_defaults(self):
     self.assertFalse(PushNotificationConfig.is_enabled())
コード例 #4
0
def push_notification_enabled():
    """
    Returns whether the push notification feature is enabled.
    """
    return PushNotificationConfig.is_enabled()
コード例 #5
0
 def test_notifications_enabled(self):
     PushNotificationConfig(enabled=True).save()
     self.assertTrue(PushNotificationConfig.is_enabled())