Fix build notifications
This commit is contained in:
parent
502fa23d31
commit
af79fde50d
2 changed files with 28 additions and 4 deletions
|
@ -1,8 +1,17 @@
|
|||
import unittest
|
||||
|
||||
from endpoints.notificationevent import BuildSuccessEvent
|
||||
from endpoints.notificationevent import BuildSuccessEvent, NotificationEvent
|
||||
from util.morecollections import AttrDict
|
||||
|
||||
class TestCreate(unittest.TestCase):
|
||||
def test_create_notifications(self):
|
||||
self.assertIsNotNone(NotificationEvent.get_event('repo_push'))
|
||||
self.assertIsNotNone(NotificationEvent.get_event('build_queued'))
|
||||
self.assertIsNotNone(NotificationEvent.get_event('build_success'))
|
||||
self.assertIsNotNone(NotificationEvent.get_event('build_failure'))
|
||||
self.assertIsNotNone(NotificationEvent.get_event('build_start'))
|
||||
|
||||
|
||||
class TestShouldPerform(unittest.TestCase):
|
||||
def test_build_nofilter(self):
|
||||
notification_data = AttrDict({
|
||||
|
|
Reference in a new issue