refactor(); project refactor
This commit is contained in:
@@ -6,10 +6,8 @@ from django.test import TestCase
|
||||
from apps.experiments.tests.helpers import make_experiment
|
||||
from apps.notifications.models import (
|
||||
ChannelType,
|
||||
NotificationChannel,
|
||||
NotificationEventType,
|
||||
NotificationLog,
|
||||
NotificationRule,
|
||||
NotificationStatus,
|
||||
)
|
||||
from apps.notifications.services import (
|
||||
@@ -85,7 +83,9 @@ class RuleCRUDTest(TestCase):
|
||||
event_type=NotificationEventType.GUARDRAIL_TRIGGERED,
|
||||
channel=self.channel,
|
||||
)
|
||||
self.assertEqual(r.event_type, NotificationEventType.GUARDRAIL_TRIGGERED)
|
||||
self.assertEqual(
|
||||
r.event_type, NotificationEventType.GUARDRAIL_TRIGGERED
|
||||
)
|
||||
self.assertIsNone(r.experiment)
|
||||
self.assertTrue(r.is_active)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user