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

@@ -331,7 +331,7 @@ def test_ses_callback_should_send_on_complaint_to_user_callback_api(sample_email
response = ses_complaint_callback()
assert process_ses_results(response)
assert send_mock.call_count == 1
assert encryption.decrypt(send_mock.call_args[0][0][0]) == {
assert encryption.verify_signature(send_mock.call_args[0][0][0]) == {
'complaint_date': '2018-06-05T13:59:58.000000Z',
'complaint_id': str(Complaint.query.one().id),
'notification_id': str(notification.id),