Skip to content

Commit

Permalink
Make sure reviewer email does not violate anonymity #4089
Browse files Browse the repository at this point in the history
  • Loading branch information
joemull committed Jun 3, 2024
1 parent c0d7a08 commit 0112df6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/utils/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,11 @@ def test_send_prepub_notifications(self):

subject_setting = self.get_default_email_subject('subject_peer_reviewer_pub_notification')
expected_subject = "[{0}] {1}".format(self.journal_one.code, subject_setting)
self.assertNotIn(self.author.email, mail.outbox[1].to)
self.assertNotIn(self.author.email, mail.outbox[1].cc)
self.assertNotIn(self.author.email, mail.outbox[1].bcc)
self.assertNotIn(reviewer.email, mail.outbox[1].to)
self.assertNotIn(reviewer.email, mail.outbox[1].cc)
self.assertIn(self.editor.email, mail.outbox[1].to)
self.assertIn(reviewer.email, mail.outbox[1].bcc)
self.assertEqual(expected_subject, mail.outbox[1].subject)
Expand Down

0 comments on commit 0112df6

Please sign in to comment.