Add tests for repository notification api

This commit is contained in:
Evan Cordell 2017-07-17 17:56:32 -04:00
parent 9dad44e93d
commit 57517adef3
7 changed files with 239 additions and 32 deletions

View file

@ -27,13 +27,11 @@ class RepositoryNotification(
:type number_of_failures: int
"""
def to_dict(self):
config = {}
try:
config = json.loads(self.config_json)
except:
config = {}
event_config = {}
try:
event_config = json.loads(self.event_config_json)
except:
@ -77,5 +75,5 @@ class RepoNotificationInterface(object):
pass
@abstractmethod
def queue_test_notification(self, notification):
def queue_test_notification(self, uuid):
pass