mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
Fix to handle_complaints.
The json we were getting from SES was not quite as expected, the test data now reflects what we get. New test added, fix a test that was passing regardless.
This commit is contained in:
@@ -50,4 +50,4 @@ def test_process_ses_results_in_complaint(sample_email_template, mocker):
|
||||
def test_remove_emails_from_complaint():
|
||||
test_json = json.loads(ses_complaint_callback()['Message'])
|
||||
remove_emails_from_complaint(test_json)
|
||||
assert "recipient1@example.com" not in test_json
|
||||
assert "recipient1@example.com" not in json.dumps(test_json)
|
||||
|
||||
Reference in New Issue
Block a user