Fix patches to use proper courseware imports

This commit is contained in:
Ned Batchelder
2019-09-05 12:35:39 -04:00
parent efba6e45e8
commit 58828da55b
14 changed files with 59 additions and 55 deletions

View File

@@ -505,7 +505,7 @@ class CcxListTest(CcxRestApiTest):
self.mstore.update_item(self.course, self.coach.id)
# case with deprecated master_course_id
with mock.patch('courseware.courses.get_course_by_id', autospec=True) as mocked:
with mock.patch('lms.djangoapps.courseware.courses.get_course_by_id', autospec=True) as mocked:
mocked.return_value.id.deprecated = True
resp = self.client.post(self.list_url, data, format='json', HTTP_AUTHORIZATION=getattr(self, auth_attr))