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
44897454
Commit
44897454
authored
Oct 10, 2017
by
Alex Dusenbery
Committed by
Alex Dusenbery
Oct 10, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check if cert_info dict is empty before rendering dashboard_certificate_information.html
parent
a1419b15
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
common/djangoapps/student/tests/test_certificates.py
+6
-0
lms/templates/dashboard/_dashboard_course_listing.html
+2
-0
No files found.
common/djangoapps/student/tests/test_certificates.py
View file @
44897454
...
...
@@ -164,6 +164,12 @@ class CertificateDisplayTest(CertificateDisplayTestBase):
self
.
_check_can_download_certificate
()
@patch.dict
(
'django.conf.settings.FEATURES'
,
{
'CERTIFICATES_HTML_VIEW'
:
False
})
def
test_no_certificate_status_no_problem
(
self
):
with
patch
(
'student.views.cert_info'
,
return_value
=
{}):
self
.
_create_certificate
(
'honor'
)
self
.
_check_can_not_download_certificate
()
@patch.dict
(
'django.conf.settings.FEATURES'
,
{
'CERTIFICATES_HTML_VIEW'
:
False
})
def
test_display_verified_certificate_no_id
(
self
):
"""
Confirm that if we get a certificate with a no-id-professional mode
...
...
lms/templates/dashboard/_dashboard_course_listing.html
View file @
44897454
...
...
@@ -281,7 +281,9 @@ from util.course import get_link_for_about_page, get_encoded_course_sharing_utm_
</div>
% endif
% if cert_status:
<
%
include
file=
'_dashboard_certificate_information.html'
args=
'cert_status=cert_status,course_overview=course_overview, enrollment=enrollment, reverify_link=reverify_link'
/>
% endif
% if credit_status is not None:
<
%
include
file=
"_dashboard_credit_info.html"
args=
"credit_status=credit_status"
/>
...
...
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