From 2481c35c85c6cb7f565b6eefaaf4943ac5605c15 Mon Sep 17 00:00:00 2001 From: Imdad Ahad Date: Tue, 13 Dec 2016 15:48:52 +0000 Subject: [PATCH] Ensure non-matching-reference notifications are filtered out --- tests/app/dao/test_notification_dao.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/app/dao/test_notification_dao.py b/tests/app/dao/test_notification_dao.py index f88815047..5efad98ae 100644 --- a/tests/app/dao/test_notification_dao.py +++ b/tests/app/dao/test_notification_dao.py @@ -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