From 5342fa27b9cad5b089b074e5301b381438432ff5 Mon Sep 17 00:00:00 2001 From: Jonathan Piacenti Date: Wed, 7 Jan 2015 20:05:44 +0000 Subject: [PATCH] Quality fixes. --- cms/djangoapps/contentstore/features/courses.py | 2 ++ common/djangoapps/terrain/ui_helpers.py | 1 + common/lib/xmodule/xmodule/tests/test_library_content.py | 1 - 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cms/djangoapps/contentstore/features/courses.py b/cms/djangoapps/contentstore/features/courses.py index 075d8525b5..2640b5c233 100644 --- a/cms/djangoapps/contentstore/features/courses.py +++ b/cms/djangoapps/contentstore/features/courses.py @@ -33,6 +33,7 @@ def i_create_a_course(step): create_a_course() +# pylint disable=unused-argument, invalid-name @step('I click the course link in Studio Home$') def i_click_the_course_link_in_studio_home(step): course_css = 'a.course-link' @@ -53,6 +54,7 @@ def courseware_page_has_loaded_in_studio(step): @step('I see the course listed in Studio Home$') +# pylint disable=unused-argument def i_see_the_course_in_studio_home(step): course_css = 'h3.class-title' assert world.css_has_text(course_css, world.scenario_dict['COURSE'].display_name) diff --git a/common/djangoapps/terrain/ui_helpers.py b/common/djangoapps/terrain/ui_helpers.py index 57e90820f8..f13811467a 100644 --- a/common/djangoapps/terrain/ui_helpers.py +++ b/common/djangoapps/terrain/ui_helpers.py @@ -48,6 +48,7 @@ REQUIREJS_WAIT = { "js/base", "js/models/course", "js/models/location", "js/models/section"], # Dashboard + # pylint disable=anomalous-backslash-in-string re.compile('^Studio Home \|'): [ "js/sock", "gettext", "js/base", "jquery.ui", "coffee/src/main", "underscore"], diff --git a/common/lib/xmodule/xmodule/tests/test_library_content.py b/common/lib/xmodule/xmodule/tests/test_library_content.py index bb8ac794f3..a9b924503d 100644 --- a/common/lib/xmodule/xmodule/tests/test_library_content.py +++ b/common/lib/xmodule/xmodule/tests/test_library_content.py @@ -250,4 +250,3 @@ class TestLibraries(MixedSplitTestCase): non_editable_metadata_fields = self.lc_block.non_editable_metadata_fields self.assertIn(LibraryContentDescriptor.mode, non_editable_metadata_fields) self.assertNotIn(LibraryContentDescriptor.display_name, non_editable_metadata_fields) -