From 49d3a7d35d9a3e04993ed9ef66206fd54de0e98e Mon Sep 17 00:00:00 2001 From: Toby Lawrence Date: Tue, 16 Feb 2016 07:58:33 -0500 Subject: [PATCH] More quality fixes. --- lms/djangoapps/courseware/tests/test_microsites.py | 12 ++++-------- .../course_groups/tests/test_partition_scheme.py | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/lms/djangoapps/courseware/tests/test_microsites.py b/lms/djangoapps/courseware/tests/test_microsites.py index 6629191119..bd30d73ffa 100644 --- a/lms/djangoapps/courseware/tests/test_microsites.py +++ b/lms/djangoapps/courseware/tests/test_microsites.py @@ -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', diff --git a/openedx/core/djangoapps/course_groups/tests/test_partition_scheme.py b/openedx/core/djangoapps/course_groups/tests/test_partition_scheme.py index afda090ea5..9bcdf18bac 100644 --- a/openedx/core/djangoapps/course_groups/tests/test_partition_scheme.py +++ b/openedx/core/djangoapps/course_groups/tests/test_partition_scheme.py @@ -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,