Skip to content
Snippets Groups Projects
Commit d0da2305 authored by Bianca Severino's avatar Bianca Severino
Browse files

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.
parent 35d9330c
Branches
Tags
No related merge requests found
......@@ -3098,6 +3098,7 @@ INSTALLED_APPS = [
'openedx.features.content_type_gating',
'openedx.features.discounts',
'openedx.features.effort_estimation',
'openedx.features.name_affirmation_api.apps.NameAffirmationApiConfig',
'lms.djangoapps.experiments',
......
Name Affirmation API
--------------------
This directory contains a passthrough for the edx-name-affirmation plugin,
in order to enable support in other plugins/packages such as edx-proctoring.
See here: `https://github.com/edx/edx-name-affirmation`_.
"""
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())
......@@ -445,7 +445,7 @@ edx-i18n-tools==0.7.0
# via ora2
edx-milestones==0.3.2
# via -r requirements/edx/base.in
edx-name-affirmation==0.3.1
edx-name-affirmation==0.4.0
# via -r requirements/edx/base.in
edx-opaque-keys[django]==2.2.2
# via
......
......@@ -542,7 +542,7 @@ edx-lint==5.0.0
# via -r requirements/edx/testing.txt
edx-milestones==0.3.2
# via -r requirements/edx/testing.txt
edx-name-affirmation==0.3.1
edx-name-affirmation==0.4.0
# via -r requirements/edx/testing.txt
edx-opaque-keys[django]==2.2.2
# via
......
......@@ -526,7 +526,7 @@ edx-lint==5.0.0
# via -r requirements/edx/testing.in
edx-milestones==0.3.2
# via -r requirements/edx/base.txt
edx-name-affirmation==0.3.1
edx-name-affirmation==0.4.0
# via -r requirements/edx/base.txt
edx-opaque-keys[django]==2.2.2
# via
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment