Created
November 8, 2021 15:56
-
-
Save bobsilverberg/00cb487d9d0a6b6aca69b9f2cf690264 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@patch('olympia.activity.utils.notify_about_activity_log') | |
def test_send_reviewer_reply(self, notify_mock): | |
notify_mock.reset() | |
self.setup_data(amo.STATUS_APPROVED) | |
self.helper.handler.reviewer_reply() | |
assert len(mail.outbox) == 1 | |
message = mail.outbox[0] | |
assert message.subject == self.preamble | |
assert self.check_log_count(amo.LOG.REVIEWER_REPLY_VERSION.id) == 1 | |
notify_mock.assert_called() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment