Change notificationworker to use a data interface

This commit is contained in:
Joseph Schorr 2017-07-12 15:50:47 +03:00
parent 8ec198228c
commit b6f1782642
10 changed files with 149 additions and 56 deletions

View file

@ -12,9 +12,9 @@ def test_all_notifications(app):
'namespace_user': AttrDict(dict(username='foo')),
'name': 'bar',
}),
'event_config_json': json.dumps({
'event_config_dict': {
'level': 'low',
}),
},
})
for subc in NotificationEvent.__subclasses__():