From b4949c0a493441ede3679d5eb0c455d394df6e8c Mon Sep 17 00:00:00 2001 From: Marisa Hoenig Date: Wed, 14 Oct 2020 14:00:06 -0400 Subject: [PATCH] [#190] test that we can access recipient identifier information from the notification using the va_identifier_type as the key --- tests/app/dao/test_recipient_identifiers_dao.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/app/dao/test_recipient_identifiers_dao.py b/tests/app/dao/test_recipient_identifiers_dao.py index f2526f5a07..d7a9e0640a 100644 --- a/tests/app/dao/test_recipient_identifiers_dao.py +++ b/tests/app/dao/test_recipient_identifiers_dao.py @@ -13,6 +13,7 @@ def test_should_add_recipient_identifiers_to_recipient_identifiers_table(notify_ va_identifier_value = "foo" persist_recipient_identifiers(notification_id, va_identifier_type, va_identifier_value) + assert RecipientIdentifiers.query.count() == 1 assert RecipientIdentifiers.query.get((notification_id, va_identifier_type, va_identifier_value))\ .notification_id == notification_id @@ -21,7 +22,8 @@ def test_should_add_recipient_identifiers_to_recipient_identifiers_table(notify_ assert RecipientIdentifiers.query.get((notification_id, va_identifier_type, va_identifier_value)) \ .va_identifier_value == va_identifier_value + assert notification.recipient_identifiers[va_identifier_type].va_identifier_value == va_identifier_value + assert notification.recipient_identifiers[va_identifier_type].va_identifier_type == va_identifier_type -# def test_should_add_recipient_identifiers_to_recipient_identifiers_history(): -# def test_should_have_access_to_recipient_identifiers_dict_from_notification(): +# def test_should_add_recipient_identifiers_to_recipient_identifiers_history():