Merge pull request #17924 from edx/LEARNER-4048/edits-to-email-photo-submission

Edit email acknowledging photo-submission
This commit is contained in:
Uzair Rasheed
2018-04-12 15:35:31 +05:00
committed by GitHub
3 changed files with 9 additions and 5 deletions

View File

@@ -22,6 +22,7 @@ from django.core.urlresolvers import reverse
from django.test import TestCase
from django.test.client import Client, RequestFactory
from django.test.utils import override_settings
from django.utils.translation import ugettext as _
from mock import Mock, patch
from nose.plugins.attrib import attr
from opaque_keys.edx.keys import CourseKey
@@ -1623,8 +1624,11 @@ class TestSubmitPhotosForVerification(TestCase):
"""
if expect_email:
# Verify that photo submission confirmation email was sent
subject = _("{platform_name} ID Verification Photos Received").format(
platform_name=settings.PLATFORM_NAME
)
self.assertEqual(len(mail.outbox), 1)
self.assertEqual("Verification photos received", mail.outbox[0].subject)
self.assertEqual(subject, mail.outbox[0].subject)
else:
# Verify that photo submission confirmation email was not sent
self.assertEqual(len(mail.outbox), 0)

View File

@@ -1065,7 +1065,7 @@ class SubmitPhotosView(View):
'platform_name': configuration_helpers.get_value("PLATFORM_NAME", settings.PLATFORM_NAME)
}
subject = _("Verification photos received")
subject = _("{platform_name} ID Verification Photos Received").format(platform_name=context['platform_name'])
message = render_to_string('emails/photo_submission_confirmation.txt', context)
from_address = configuration_helpers.get_value('email_from_address', settings.DEFAULT_FROM_EMAIL)
to_address = user.email

View File

@@ -3,9 +3,9 @@
${_("Hi {full_name},").format(full_name=full_name)}
${_("Thanks for submitting your photos!")}
${_("We've received your information and the verification process has begun. You can check the status of the verification process on your dashboard.")}
${_("We've received your information and the ID verification process has begun."
"Check for an email from us in the next few days to confirm whether your verification was successful."
"You can also check the status of the verification process on your dashboard.")}
${_("Thank you,")}
${_("The {platform_name} team").format(platform_name=platform_name)}