Merge pull request #11465 from edx/perf/speed-up-courseware-tests

Switch to SharedModuleStoreTestCase in the 'courseware' app where possible.
This commit is contained in:
Toby Lawrence
2016-02-16 10:06:53 -05:00
16 changed files with 378 additions and 274 deletions

View File

@@ -393,7 +393,7 @@ class TestMasqueradedGroup(StaffMasqueradeTestCase):
group.
"""
self.course.cohort_config = {'cohorted': True}
self.update_course(self.course, self.test_user.id)
modulestore().update_item(self.course, self.test_user.id) # pylint: disable=no-member
cohort = CohortFactory.create(course_id=self.course.id, users=[self.test_user])
CourseUserGroupPartitionGroup(
course_user_group=cohort,