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
ee24e106
Commit
ee24e106
authored
Jan 30, 2014
by
Usman Khalid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use unicode course titles for bulk email tests
parent
afccb17a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
5 deletions
+11
-5
lms/djangoapps/bulk_email/tests/test_course_optout.py
+3
-1
lms/djangoapps/bulk_email/tests/test_email.py
+2
-1
lms/djangoapps/bulk_email/tests/test_err_handling.py
+3
-1
lms/djangoapps/bulk_email/tests/test_forms.py
+3
-2
No files found.
lms/djangoapps/bulk_email/tests/test_course_optout.py
View file @
ee24e106
# -*- coding: utf-8 -*-
"""
Unit tests for student optouts from course email
"""
...
...
@@ -26,7 +27,8 @@ class TestOptoutCourseEmails(ModuleStoreTestCase):
"""
def
setUp
(
self
):
self
.
course
=
CourseFactory
.
create
()
course_title
=
u"ẗëṡẗ title イ乇丂イ ᄊ乇丂丂ムg乇 キo尺 ムレレ тэѕт мэѕѕаБэ"
self
.
course
=
CourseFactory
.
create
(
display_name
=
course_title
)
self
.
instructor
=
AdminFactory
.
create
()
self
.
student
=
UserFactory
.
create
()
CourseEnrollmentFactory
.
create
(
user
=
self
.
student
,
course_id
=
self
.
course
.
id
)
...
...
lms/djangoapps/bulk_email/tests/test_email.py
View file @
ee24e106
...
...
@@ -48,7 +48,8 @@ class TestEmailSendFromDashboard(ModuleStoreTestCase):
@patch.dict
(
settings
.
FEATURES
,
{
'ENABLE_INSTRUCTOR_EMAIL'
:
True
,
'REQUIRE_COURSE_EMAIL_AUTH'
:
False
})
def
setUp
(
self
):
self
.
course
=
CourseFactory
.
create
()
course_title
=
u"ẗëṡẗ title イ乇丂イ ᄊ乇丂丂ムg乇 キo尺 ムレレ тэѕт мэѕѕаБэ"
self
.
course
=
CourseFactory
.
create
(
display_name
=
course_title
)
self
.
instructor
=
InstructorFactory
(
course
=
self
.
course
.
location
)
...
...
lms/djangoapps/bulk_email/tests/test_err_handling.py
View file @
ee24e106
# -*- coding: utf-8 -*-
"""
Unit tests for handling email sending errors
"""
...
...
@@ -43,7 +44,8 @@ class TestEmailErrors(ModuleStoreTestCase):
"""
def
setUp
(
self
):
self
.
course
=
CourseFactory
.
create
()
course_title
=
u"ẗëṡẗ title イ乇丂イ ᄊ乇丂丂ムg乇 キo尺 ムレレ тэѕт мэѕѕаБэ"
self
.
course
=
CourseFactory
.
create
(
display_name
=
course_title
)
self
.
instructor
=
AdminFactory
.
create
()
self
.
client
.
login
(
username
=
self
.
instructor
.
username
,
password
=
"test"
)
...
...
lms/djangoapps/bulk_email/tests/test_forms.py
View file @
ee24e106
# -*- coding: utf-8 -*-
"""
Unit tests for bulk-email-related forms.
"""
...
...
@@ -23,8 +24,8 @@ class CourseAuthorizationFormTest(ModuleStoreTestCase):
"""Test the CourseAuthorizationAdminForm form for Mongo-backed courses."""
def
setUp
(
self
):
# Make a mongo course
self
.
course
=
CourseFactory
.
create
()
course_title
=
u"ẗëṡẗ title イ乇丂イ ᄊ乇丂丂ムg乇 キo尺 ムレレ тэѕт мэѕѕаБэ"
self
.
course
=
CourseFactory
.
create
(
display_name
=
course_title
)
def
tearDown
(
self
):
"""
...
...
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