Files
edx-platform/openedx/features/name_affirmation_api/apps.py
Bianca Severino d0da23058d chore: set runtime service for name affirmation
If special exams are enabled, set a runtime service for Name Affirmation
in order to enable it for use in proctored exam attempts.
2021-08-09 11:38:26 -04:00

24 lines
617 B
Python

"""
Name Affirmation API App Configuration
"""
from django.apps import AppConfig
from django.conf import settings
from edx_proctoring.runtime import set_runtime_service
class NameAffirmationApiConfig(AppConfig):
"""
Application Configuration for Misc Services.
"""
name = 'openedx.features.name_affirmation_api'
def ready(self):
"""
Connect services.
"""
if settings.FEATURES.get('ENABLE_SPECIAL_EXAMS'):
from edx_name_affirmation.services import NameAffirmationService
set_runtime_service('name_affirmation', NameAffirmationService())