Commit d7641295 by Afzal Wali

Renamed the CoursewareService to InstructorService.

parent 80ed831c
......@@ -519,9 +519,9 @@ def remove_exam_attempt(attempt_id):
course_id = existing_attempt.proctored_exam.course_id
content_id = existing_attempt.proctored_exam.content_id
existing_attempt.delete_exam_attempt()
courseware_service = get_runtime_service('courseware')
if courseware_service:
courseware_service.delete_student_attempt(username, course_id, content_id)
instructor_service = get_runtime_service('instructor')
if instructor_service:
instructor_service.delete_student_attempt(username, course_id, content_id)
def get_all_exams_for_course(course_id):
......
......@@ -56,7 +56,7 @@ from .utils import (
from edx_proctoring.tests.test_services import (
MockCreditService,
MockCoursewareService,
MockInstructorService,
)
from edx_proctoring.runtime import set_runtime_service, get_runtime_service
......@@ -103,7 +103,7 @@ class ProctoredExamApiTests(LoggedInTestCase):
self.practice_exam_submitted_msg = 'You have submitted this practice proctored exam'
set_runtime_service('credit', MockCreditService())
set_runtime_service('courseware', MockCoursewareService())
set_runtime_service('instructor', MockInstructorService())
def _create_proctored_exam(self):
"""
......
......@@ -60,9 +60,9 @@ class MockCreditService(object):
found[0]['status'] = status
class MockCoursewareService(object):
class MockInstructorService(object):
"""
Simple mock of the Courseware Service
Simple mock of the Instructor Service
"""
def delete_student_attempt(self, student_identifier, course_id, content_id): # pylint: disable=unused-argument
"""
......
Markdown is supported
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