Update uses of encryption.encrypt to more accurate encryption.sign

This commit is contained in:
Ryan Ahearn
2022-12-07 14:55:05 -05:00
parent 52ce391405
commit b553ea4c77
14 changed files with 133 additions and 101 deletions

View File

@@ -156,7 +156,7 @@ def test_notification_personalisation_getter_returns_empty_dict_from_None():
def test_notification_personalisation_getter_always_returns_empty_dict():
noti = Notification()
noti._personalisation = encryption.encrypt({})
noti._personalisation = encryption.sign({})
assert noti.personalisation == {}
@@ -168,7 +168,7 @@ def test_notification_personalisation_setter_always_sets_empty_dict(input_value)
noti = Notification()
noti.personalisation = input_value
assert noti._personalisation == encryption.encrypt({})
assert noti._personalisation == encryption.sign({})
def test_notification_subject_is_none_for_sms(sample_service):