Skip to content

Commit

Permalink
[#190] test that we can access recipient identifier information from …
Browse files Browse the repository at this point in the history
…the notification using the va_identifier_type as the key
  • Loading branch information
marisahoenig committed Oct 14, 2020
1 parent b4a528f commit b4949c0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/app/dao/test_recipient_identifiers_dao.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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():

0 comments on commit b4949c0

Please sign in to comment.