-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #231 from edx/michaelroytman/COSMO-130-tech-suppor…
…t-site feat: add support for a tech_support_url on the ProctoringProvider
- Loading branch information
Showing
6 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,7 @@ def setUp(self): | |
lti_configuration_id='123456789', | ||
tech_support_phone='1118976309', | ||
tech_support_email='[email protected]', | ||
tech_support_url='www.example.com', | ||
) | ||
|
||
def tearDown(self): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -744,6 +744,7 @@ class ProctoringSettingsView(ExamsAPIView): | |
{ | ||
provider_tech_support_email: '', | ||
provider_tech_support_phone: '', | ||
provider_tech_support_site: '', | ||
provider_name: 'test provider', | ||
escalation_name: '[email protected]', | ||
} | ||
|
@@ -766,6 +767,7 @@ def get(self, request, course_id, exam_id): | |
if provider: | ||
data['provider_tech_support_email'] = provider.tech_support_email | ||
data['provider_tech_support_phone'] = provider.tech_support_phone | ||
data['provider_tech_support_url'] = provider.tech_support_url | ||
data['provider_name'] = provider.verbose_name | ||
|
||
data['proctoring_escalation_email'] = config_data.escalation_email | ||
|
18 changes: 18 additions & 0 deletions
18
edx_exams/apps/core/migrations/0023_proctoringprovider_tech_support_url.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 3.2.23 on 2023-12-19 19:49 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('core', '0022_courseexamconfiguration_escalation_email'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='proctoringprovider', | ||
name='tech_support_url', | ||
field=models.URLField(max_length=255, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,7 @@ class Meta: | |
lti_configuration_id = factory.Sequence('11{}'.format) | ||
tech_support_phone = '1118976309' | ||
tech_support_email = '[email protected]' | ||
tech_support_url = 'www.example.com' | ||
|
||
|
||
class CourseExamConfigurationFactory(DjangoModelFactory): | ||
|