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
c8ae32e6
Commit
c8ae32e6
authored
Mar 05, 2015
by
Awais
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ECOM-1158 fixing astrophysique in html.
parent
1d005086
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletions
+19
-1
lms/djangoapps/verify_student/tests/test_views.py
+18
-0
lms/templates/verify_student/pay_and_verify.html
+1
-1
No files found.
lms/djangoapps/verify_student/tests/test_views.py
View file @
c8ae32e6
...
...
@@ -797,6 +797,24 @@ class TestPayAndVerifyView(UrlResetMixin, ModuleStoreTestCase):
url
=
reverse
(
'verify_student_upgrade_and_verify'
,
kwargs
=
{
'course_id'
:
unicode
(
course_id
)})
self
.
assertRedirects
(
response
,
url
)
def
test_course_upgrade_page_with_unicode_and_special_values_in_display_name
(
self
):
"""Check the course information on the page. """
mode_display_name
=
u"Introduction à l'astrophysique"
course
=
CourseFactory
.
create
(
display_name
=
mode_display_name
)
for
course_mode
in
[
"honor"
,
"verified"
]:
min_price
=
(
self
.
MIN_PRICE
if
course_mode
!=
"honor"
else
0
)
CourseModeFactory
(
course_id
=
course
.
id
,
mode_slug
=
course_mode
,
mode_display_name
=
mode_display_name
,
min_price
=
min_price
)
self
.
_enroll
(
course
.
id
,
"honor"
)
response_dict
=
self
.
_get_page_data
(
self
.
_get_page
(
'verify_student_start_flow'
,
course
.
id
))
self
.
assertEqual
(
response_dict
[
'course_name'
],
mode_display_name
)
class
TestCreateOrder
(
ModuleStoreTestCase
):
"""
...
...
lms/templates/verify_student/pay_and_verify.html
View file @
c8ae32e6
...
...
@@ -58,7 +58,7 @@ from verify_student.views import PayAndVerifyView
data-full-name=
'${user_full_name}'
data-platform-name=
'${platform_name}'
data-course-key=
'${course_key}'
data-course-name=
'${course.display_name}'
data-course-name=
'${course.display_name
|h
}'
data-course-start-date=
'${course.start_datetime_text()}'
data-courseware-url=
'${courseware_url}'
data-course-mode-name=
'${course_mode.name}'
...
...
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