예제 #1
0
 def test_no_handler(self):
     trigger = AlertRuleTriggerAction(
         type=AlertRuleTriggerAction.Type.EMAIL.value)
     assert trigger.fire(Mock(), Mock(), 123) is None
예제 #2
0
 def test_no_handler(self):
     trigger = AlertRuleTriggerAction(
         type=AlertRuleTriggerAction.Type.EMAIL.value)
     assert trigger.fire(Mock(), Mock(), Mock(), 123,
                         IncidentStatus.CRITICAL) is None