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
fd2891ed
Commit
fd2891ed
authored
Dec 03, 2014
by
Christopher Lee
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6128 from edx/adam/fix-upgrade-text
fix typo on course payment page (ECOM-714)
parents
142c38ed
c0b87d87
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
lms/djangoapps/verify_student/tests/test_views.py
+5
-1
lms/templates/verify_student/_verification_header.html
+5
-5
No files found.
lms/djangoapps/verify_student/tests/test_views.py
View file @
fd2891ed
...
...
@@ -185,7 +185,7 @@ class TestVerifyView(ModuleStoreTestCase):
self
.
user
=
UserFactory
.
create
(
username
=
"rusty"
,
password
=
"test"
)
self
.
client
.
login
(
username
=
"rusty"
,
password
=
"test"
)
self
.
course_key
=
SlashSeparatedCourseKey
(
'Robot'
,
'999'
,
'Test_Course'
)
CourseFactory
.
create
(
org
=
'Robot'
,
number
=
'999'
,
display_name
=
'Test Course'
)
self
.
course
=
CourseFactory
.
create
(
org
=
'Robot'
,
number
=
'999'
,
display_name
=
'Test Course'
)
verified_mode
=
CourseMode
(
course_id
=
self
.
course_key
,
mode_slug
=
"verified"
,
mode_display_name
=
"Verified Certificate"
,
...
...
@@ -205,6 +205,10 @@ class TestVerifyView(ModuleStoreTestCase):
kwargs
=
{
"course_id"
:
unicode
(
self
.
course_key
)})
response
=
self
.
client
.
get
(
url
)
self
.
assertIn
(
"You are now enrolled in"
,
response
.
content
)
# make sure org, name, and number are present
self
.
assertIn
(
self
.
course
.
display_org_with_default
,
response
.
content
)
self
.
assertIn
(
self
.
course
.
display_name_with_default
,
response
.
content
)
self
.
assertIn
(
self
.
course
.
display_number_with_default
,
response
.
content
)
def
test_valid_course_upgrade_text
(
self
):
url
=
reverse
(
'verify_student_verify'
,
...
...
lms/templates/verify_student/_verification_header.html
View file @
fd2891ed
...
...
@@ -6,33 +6,33 @@
<h2
class=
"title"
>
<span
class=
"wrapper-sts"
>
<
%
organization =
'<span class="sts-course-org">'
+
course_org
+
'</
span
>
' %>
<
%
course_name
=
'<span class="sts-course-number">'
+
course_num
+
'</
span
>
<span
class=
"sts-course-name"
>
' + 'course_name'
+ '
</span>
' %>
<
%
course_name
_html =
'<span class="sts-course-number">'
+
course_num
+
'</
span
>
<span
class=
"sts-course-name"
>
' + course_name
+ '
</span>
' %>
% if upgrade:
<span
class=
"sts-label"
>
${_("You are upgrading your enrollment for {organization}'s {course_name}").format(
organization=organization,
course_name=course_name
course_name=course_name
_html
)}
</span>
% elif reverify:
<span
class=
"sts-label"
>
${_("You are re-verifying for {organization}'s {course_name}").format(
organization=organization,
course_name=course_name
course_name=course_name
_html
)}
</span>
% elif modes_dict and "professional" in modes_dict:
<span
class=
"sts-label"
>
${_("You are enrolling in {organization}'s {course_name}").format(
organization=organization,
course_name=course_name
course_name=course_name
_html
)}
</span>
% else:
<span
class=
"sts-label"
>
${_("Congrats! You are now enrolled in {organization}'s {course_name}").format(
organization=organization,
course_name=course_name
course_name=course_name
_html
)}
</span>
% endif
...
...
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