Ensure non-matching-reference notifications are filtered out

This commit is contained in:
Imdad Ahad
2016-12-13 15:48:52 +00:00
parent e5496b29b8
commit 2481c35c85

View File

@@ -630,6 +630,7 @@ def test_get_notifications_by_reference(notify_db, notify_db_session, sample_ser
assert len(Notification.query.all()) == 0
sample_notification(notify_db, notify_db_session, client_reference=client_reference)
sample_notification(notify_db, notify_db_session, client_reference=client_reference)
sample_notification(notify_db, notify_db_session, client_reference='other-ref')
all_notifications = get_notifications_for_service(sample_service.id, client_reference=client_reference).items
assert len(all_notifications) == 2