More quality fixes.

This commit is contained in:
Toby Lawrence
2016-02-16 07:58:33 -05:00
parent ead2f0477b
commit 49d3a7d35d
2 changed files with 5 additions and 9 deletions

View File

@@ -30,14 +30,10 @@ class TestMicrosites(SharedModuleStoreTestCase, LoginEnrollmentTestCase):
org='TestMicrositeX',
emit_signals=True,
)
cls.chapter0 = ItemFactory.create(parent_location=cls.course.location,
display_name='Overview')
cls.chapter9 = ItemFactory.create(parent_location=cls.course.location,
display_name='factory_chapter')
cls.section0 = ItemFactory.create(parent_location=cls.chapter0.location,
display_name='Welcome')
cls.section9 = ItemFactory.create(parent_location=cls.chapter9.location,
display_name='factory_section')
cls.chapter0 = ItemFactory.create(parent_location=cls.course.location, display_name='Overview')
cls.chapter9 = ItemFactory.create(parent_location=cls.course.location, display_name='factory_chapter')
cls.section0 = ItemFactory.create(parent_location=cls.chapter0.location, display_name='Welcome')
cls.section9 = ItemFactory.create(parent_location=cls.chapter9.location, display_name='factory_section')
cls.course_outside_microsite = CourseFactory.create(
display_name='Robot_Course_Outside_Microsite',

View File

@@ -393,7 +393,7 @@ class TestMasqueradedGroup(StaffMasqueradeTestCase):
group.
"""
self.course.cohort_config = {'cohorted': True}
modulestore().update_item(self.course, self.test_user.id) # pylint: disable=no-member
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,