Make QSS multiple notification messaging nicer

This commit is contained in:
Joseph Schorr 2017-03-01 16:11:11 -05:00
parent eff1827d9d
commit 9e6c368f7a
2 changed files with 11 additions and 4 deletions

View file

@ -353,8 +353,8 @@ class TestSecurityScanner(unittest.TestCase):
# Ensure we get the correct event message out as well.
event = VulnerabilityFoundEvent()
self.assertEquals('2 vulnerabilities were detected in repository devtable/simple in 2 tags',
event.get_summary(body['event_data'], {}))
msg = '1 Low and 1 more vulnerabilities were detected in repository devtable/simple in 2 tags'
self.assertEquals(msg, event.get_summary(body['event_data'], {}))
else:
self.assertIsNone(queue_item)