add cert available date to CMS settings

This commit is contained in:
Sanford Student
2017-07-27 12:05:02 -04:00
parent 80538211cd
commit bf7b3eab1a
11 changed files with 72 additions and 26 deletions

View File

@@ -1,19 +0,0 @@
"""
This module contains various configuration settings via
waffle switches for the Certificates app.
"""
from openedx.core.djangoapps.waffle_utils import WaffleSwitchNamespace
# Namespace
WAFFLE_NAMESPACE = u'certificates'
# Switches
SELF_PACED_ONLY = u'self_paced_only'
INSTRUCTOR_PACED_ONLY = u'instructor_paced_only'
def waffle():
"""
Returns the namespaced, cached, audited Waffle class for Certificates.
"""
return WaffleSwitchNamespace(name=WAFFLE_NAMESPACE, log_prefix=u'Certificates: ')

View File

@@ -6,7 +6,6 @@ import logging
from django.db.models.signals import post_save
from django.dispatch import receiver
from .config import waffle
from certificates.models import \
CertificateGenerationCourseSetting, \
CertificateWhitelist, \
@@ -14,6 +13,7 @@ from certificates.models import \
from certificates.tasks import generate_certificate
from courseware import courses
from lms.djangoapps.grades.new.course_grade_factory import CourseGradeFactory
from openedx.core.djangoapps.certificates.config import waffle
from openedx.core.djangoapps.signals.signals import COURSE_GRADE_NOW_PASSED, LEARNER_NOW_VERIFIED
from student.models import CourseEnrollment

View File

@@ -5,7 +5,6 @@ and disabling for instructor-paced courses.
import mock
from certificates import api as certs_api
from certificates.config import waffle
from certificates.models import \
CertificateGenerationConfiguration, \
CertificateWhitelist, \
@@ -15,6 +14,7 @@ from openedx.core.djangoapps.signals.handlers import _listen_for_course_pacing_c
from lms.djangoapps.grades.new.course_grade_factory import CourseGradeFactory
from lms.djangoapps.grades.tests.utils import mock_passing_grade
from lms.djangoapps.verify_student.models import SoftwareSecurePhotoVerification
from openedx.core.djangoapps.certificates.config import waffle
from openedx.core.djangoapps.self_paced.models import SelfPacedConfiguration
from student.tests.factories import CourseEnrollmentFactory, UserFactory
from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase