deprecate html setting for web certs and set to true by default

This commit is contained in:
Sanford Student
2018-01-23 10:41:57 -05:00
parent 407bc5ff2b
commit e2becea8cb
4 changed files with 7 additions and 4 deletions

View File

@@ -31,6 +31,8 @@ class TestHeaderMenu(CourseTestCase, UrlResetMixin):
Tests course header menu should not have `Certificates` menu item
if course has not web/HTML certificates enabled.
"""
self.course.cert_html_view_enabled = False
self.save_course()
outline_url = reverse_course_url('course_handler', self.course.id)
resp = self.client.get(outline_url, HTTP_ACCEPT='text/html')
self.assertEqual(resp.status_code, 200)
@@ -41,8 +43,6 @@ class TestHeaderMenu(CourseTestCase, UrlResetMixin):
Tests course header menu should have `Certificates` menu item
if course has web/HTML certificates enabled.
"""
self.course.cert_html_view_enabled = True
self.save_course()
outline_url = reverse_course_url('course_handler', self.course.id)
resp = self.client.get(outline_url, HTTP_ACCEPT='text/html')
self.assertEqual(resp.status_code, 200)

View File

@@ -282,6 +282,9 @@ FEATURES['ENABLE_DISCUSSION_SERVICE'] = False
# Enable a parental consent age limit for testing
PARENTAL_CONSENT_AGE_LIMIT = 13
# Enable certificates for the tests
FEATURES['CERTIFICATES_HTML_VIEW'] = True
# Enable content libraries code for the tests
FEATURES['ENABLE_CONTENT_LIBRARIES'] = True