Skip to content

Commit

Permalink
Merge pull request #20 from votdev/fix_tests
Browse files Browse the repository at this point in the history
Fix unittests.
  • Loading branch information
votdev authored Mar 26, 2020
2 parents 773a379 + ce22d10 commit 838b50a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ def test_parse_notification_none(self):
def test_parse_notification(self):
trap_data = parse_notification({
'alert_oid_label': 'oid',
'trap_default_oid': '1.2.3.4'
'trap_default_oid': '1.2.3.4',
'trap_default_severity': ''
}, NOTIFICATION_FIRING)
self.assertIsInstance(trap_data, list)
trap_data = trap_data[0]
Expand All @@ -98,7 +99,8 @@ def test_parse_notification(self):
def test_parse_notification_no_oid(self):
trap_data = parse_notification({
'alert_oid_label': 'oid',
'trap_default_oid': '1.2.3.4'
'trap_default_oid': '1.2.3.4',
'trap_default_severity': ''
}, NOTIFICATION_RESOLVED)
self.assertIsInstance(trap_data, list)
trap_data = trap_data[0]
Expand Down

0 comments on commit 838b50a

Please sign in to comment.