Make it clear reminder email does not relate to new issue (#16661)

* Make it clear rejection emailis a reminder

* black formatting
This commit is contained in:
dbxnr 2021-03-03 10:07:45 +00:00 коммит произвёл GitHub
Родитель bb3e280700
Коммит 57dc1f258f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -95,7 +95,9 @@ class Command(BaseCommand):
'delayed_rejection_days': self.EXPIRING_PERIOD_DAYS,
}
template = 'reject_multiple_versions_with_delay'
subject = 'Mozilla Add-ons: %s%s will be disabled on addons.mozilla.org'
subject = (
'Reminder - Mozilla Add-ons: %s%s will be disabled on addons.mozilla.org'
)
# This re-sends the notification sent when the versions were scheduled
# for rejection, but with the new delay in the body of the email now
# that the notification is about to expire.

Просмотреть файл

@ -861,7 +861,7 @@ class TestSendPendingRejectionLastWarningNotification(TestCase):
assert addon.reviewerflags.notified_about_expiring_delayed_rejections
message = mail.outbox[0]
assert message.subject == (
'Mozilla Add-ons: %s will be disabled on addons.mozilla.org'
'Reminder - Mozilla Add-ons: %s will be disabled on addons.mozilla.org'
% str(addon.name)
)
assert message.to == [author.email]