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
9f34720d
Commit
9f34720d
authored
Aug 26, 2015
by
asadiqbal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SOL-1152
parent
6a1be48e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
cms/djangoapps/contentstore/views/certificates.py
+1
-0
cms/djangoapps/contentstore/views/tests/test_certificates.py
+6
-0
No files found.
cms/djangoapps/contentstore/views/certificates.py
View file @
9f34720d
...
...
@@ -176,6 +176,7 @@ class CertificateManager(object):
"id"
:
certificate_data
[
'id'
],
"name"
:
certificate_data
[
'name'
],
"description"
:
certificate_data
[
'description'
],
"is_active"
:
certificate_data
[
'is_active'
],
"version"
:
CERTIFICATE_SCHEMA_VERSION
,
"signatories"
:
certificate_data
[
'signatories'
]
}
...
...
cms/djangoapps/contentstore/views/tests/test_certificates.py
View file @
9f34720d
...
...
@@ -33,6 +33,7 @@ FEATURES_WITH_CERTS_ENABLED['CERTIFICATES_HTML_VIEW'] = True
CERTIFICATE_JSON
=
{
u'name'
:
u'Test certificate'
,
u'description'
:
u'Test description'
,
u'is_active'
:
True
,
u'version'
:
CERTIFICATE_SCHEMA_VERSION
,
}
...
...
@@ -41,6 +42,7 @@ CERTIFICATE_JSON_WITH_SIGNATORIES = {
u'description'
:
u'Test description'
,
u'version'
:
CERTIFICATE_SCHEMA_VERSION
,
u'course_title'
:
'Course Title Override'
,
u'is_active'
:
True
,
u'signatories'
:
[
{
"name"
:
"Bob Smith"
,
...
...
@@ -217,6 +219,7 @@ class CertificatesListHandlerTestCase(EventTestMixin, CourseTestCase, Certificat
u'version'
:
CERTIFICATE_SCHEMA_VERSION
,
u'name'
:
u'Test certificate'
,
u'description'
:
u'Test description'
,
u'is_active'
:
True
,
u'signatories'
:
[]
}
response
=
self
.
client
.
ajax_post
(
...
...
@@ -332,6 +335,7 @@ class CertificatesListHandlerTestCase(EventTestMixin, CourseTestCase, Certificat
u'version'
:
CERTIFICATE_SCHEMA_VERSION
,
u'name'
:
u'New test certificate'
,
u'description'
:
u'New test description'
,
u'is_active'
:
True
,
u'signatories'
:
[]
}
...
...
@@ -383,6 +387,7 @@ class CertificatesDetailHandlerTestCase(EventTestMixin, CourseTestCase, Certific
u'version'
:
CERTIFICATE_SCHEMA_VERSION
,
u'name'
:
u'Test certificate'
,
u'description'
:
u'Test description'
,
u'is_active'
:
True
,
u'course_title'
:
u'Course Title Override'
,
u'signatories'
:
[]
}
...
...
@@ -413,6 +418,7 @@ class CertificatesDetailHandlerTestCase(EventTestMixin, CourseTestCase, Certific
u'version'
:
CERTIFICATE_SCHEMA_VERSION
,
u'name'
:
u'New test certificate'
,
u'description'
:
u'New test description'
,
u'is_active'
:
True
,
u'course_title'
:
u'Course Title Override'
,
u'signatories'
:
[]
...
...
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