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
c8b87179
Commit
c8b87179
authored
Jun 06, 2015
by
Kelketek
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8399 from open-craft/fix-badging-name
Fix self-paced badge naming.
parents
c5dc84f8
eba951fe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
lms/djangoapps/certificates/badge_handler.py
+1
-1
lms/djangoapps/certificates/tests/test_badge_handler.py
+7
-0
No files found.
lms/djangoapps/certificates/badge_handler.py
View file @
c8b87179
...
...
@@ -117,7 +117,7 @@ class BadgeHandler(object):
)
else
:
return
_
(
u'Completed the course "{course_name}" ({course_mode})'
)
.
format
(
start_dat
e
=
course
.
display_name
,
course_nam
e
=
course
.
display_name
,
course_mode
=
mode
,
)
...
...
lms/djangoapps/certificates/tests/test_badge_handler.py
View file @
c8b87179
...
...
@@ -115,6 +115,13 @@ class BadgeHandlerTestCase(ModuleStoreTestCase, EventTrackingTestCase):
}
)
def
test_self_paced_description
(
self
):
"""
Verify that a badge created for a course with no end date gets a different description.
"""
self
.
course
.
end
=
None
self
.
assertEqual
(
BadgeHandler
.
badge_description
(
self
.
course
,
'honor'
),
'Completed the course "Badged" (honor)'
)
def
test_ensure_badge_created_cache
(
self
):
"""
Make sure ensure_badge_created doesn't call create_badge if we know the badge is already there.
...
...
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