Edit email acknowledging photo-submission
To add more context,content of the acknowledging email of photo-submission is updated so that a learner aware of the whole process. LEARNER-4048
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)}
|
||||
|
||||
Reference in New Issue
Block a user