Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
c08010e5
Unverified
Commit
c08010e5
authored
Dec 04, 2017
by
Eric Fischer
Committed by
GitHub
Dec 04, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16643 from edx/efischer/EDUCATOR-1773_revert
EDUCATOR-1773 resolution
parents
34db1269
b543a6ce
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
20 deletions
+2
-20
lms/djangoapps/bulk_email/tasks.py
+0
-7
lms/djangoapps/bulk_email/tests/test_email.py
+1
-12
requirements/edx/base.txt
+1
-1
No files found.
lms/djangoapps/bulk_email/tasks.py
View file @
c08010e5
...
...
@@ -416,13 +416,6 @@ def _get_source_address(course_id, course_title, course_language, truncate=True)
if
len
(
escaped_encoded_from_addr
)
>=
320
and
truncate
:
from_addr
=
format_address
(
course_name
)
# EDUCATOR-1773: Courses with unicode in the title are not handled by django-ses logging
# remove this block once https://github.com/django-ses/django-ses/issues/137 is resolved and released
try
:
dummy_var
=
"not a unicode string {}"
.
format
(
from_addr
)
except
UnicodeEncodeError
:
from_addr
=
format_address
(
course_name
)
return
from_addr
...
...
lms/djangoapps/bulk_email/tests/test_email.py
View file @
c08010e5
...
...
@@ -4,7 +4,7 @@ Unit tests for sending course email
"""
import
json
import
os
from
unittest
import
skip
,
skip
If
from
unittest
import
skipIf
import
ddt
from
django.conf
import
settings
...
...
@@ -267,8 +267,6 @@ class TestEmailSendFromDashboardMockedHtmlToText(EmailSendFromDashboardTestCase)
self
.
assertEqual
(
len
(
mail
.
outbox
[
0
]
.
to
),
1
)
self
.
assertEquals
(
mail
.
outbox
[
0
]
.
to
[
0
],
self
.
instructor
.
email
)
self
.
assertEquals
(
mail
.
outbox
[
0
]
.
subject
,
'test subject for myself'
)
"""
TODO - uncomment this assertion and delete the following alternate once django-ses is fixed. EDUCATOR-1773
self
.
assertEquals
(
mail
.
outbox
[
0
]
.
from_email
,
u'"{course_display_name}" Course Staff <{course_name}-no-reply@example.com>'
.
format
(
...
...
@@ -276,14 +274,6 @@ class TestEmailSendFromDashboardMockedHtmlToText(EmailSendFromDashboardTestCase)
course_name
=
self
.
course
.
id
.
course
)
)
"""
# pylint: disable=pointless-string-statement
self
.
assertEquals
(
mail
.
outbox
[
0
]
.
from_email
,
u'"{course_display_name}" Course Staff <{course_name}-no-reply@example.com>'
.
format
(
course_display_name
=
self
.
course
.
number
,
course_name
=
self
.
course
.
id
.
course
)
)
def
test_send_to_staff
(
self
):
"""
...
...
@@ -509,7 +499,6 @@ class TestEmailSendFromDashboardMockedHtmlToText(EmailSendFromDashboardTestCase)
[
self
.
instructor
.
email
]
+
[
s
.
email
for
s
in
self
.
staff
]
+
[
s
.
email
for
s
in
self
.
students
]
)
@skip
(
"Unicode course names are broken, see EDUCATOR-1773 for details. Un-skip after django-ses is fixed."
)
@override_settings
(
BULK_EMAIL_DEFAULT_FROM_EMAIL
=
"no-reply@courseupdates.edx.org"
)
def
test_long_course_display_name
(
self
):
"""
...
...
requirements/edx/base.txt
View file @
c08010e5
...
...
@@ -27,7 +27,7 @@ django-oauth-toolkit==0.12.0
django-pipeline-forgiving==1.0.0
django-pyfs==1.0.7
django-sekizai>=0.10
django-ses==0.8.
3.1
django-ses==0.8.
4
django-simple-history==1.9.0
django-statici18n==1.4.0
django-storages==1.4.1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment