From c54a71feb59ca1541b1b50a75c3b1d44bc0a17e6 Mon Sep 17 00:00:00 2001 From: Sarina Canelake Date: Sun, 30 Nov 2014 01:51:56 -0500 Subject: [PATCH] s/pylint:disable/pylint: disable/ (formatting fix) --- common/djangoapps/third_party_auth/tests/specs/base.py | 6 +++--- common/djangoapps/user_api/models.py | 2 +- common/test/acceptance/tests/discussion/test_cohorts.py | 4 ++-- common/test/acceptance/tests/discussion/test_discussion.py | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/common/djangoapps/third_party_auth/tests/specs/base.py b/common/djangoapps/third_party_auth/tests/specs/base.py index da29b9b9a3..3c34754931 100644 --- a/common/djangoapps/third_party_auth/tests/specs/base.py +++ b/common/djangoapps/third_party_auth/tests/specs/base.py @@ -654,7 +654,7 @@ class IntegrationTest(testutil.TestCase, test.TestCase): pipeline.get_login_url(self.PROVIDER_CLASS.NAME, pipeline.AUTH_ENTRY_LOGIN))) # Next, the provider makes a request against /auth/complete/. - # pylint:disable-msg=protected-access + # pylint: disable-msg=protected-access self.assert_redirect_to_register_looks_correct(actions.do_complete(strategy, social_views._do_login)) mako_middleware_process_request(strategy.request) @@ -716,7 +716,7 @@ class IntegrationTest(testutil.TestCase, test.TestCase): # assignment via pipeline to make sure a distinct username is created. strategy.storage.user.create_user(username=self.get_username(), email='user@email.com', password='password') strategy.backend.auth_complete = mock.MagicMock(return_value=self.fake_auth_complete(strategy)) - # pylint:disable-msg=protected-access + # pylint: disable-msg=protected-access self.assert_redirect_to_register_looks_correct(actions.do_complete(strategy, social_views._do_login)) distinct_username = pipeline.get(request)['kwargs']['username'] self.assertNotEqual(original_username, distinct_username) @@ -725,7 +725,7 @@ class IntegrationTest(testutil.TestCase, test.TestCase): request, strategy = self.get_request_and_strategy( auth_entry=pipeline.AUTH_ENTRY_REGISTER, redirect_uri='social:complete') strategy.backend.auth_complete = mock.MagicMock(return_value=self.fake_auth_complete(strategy)) - # pylint:disable-msg=protected-access + # pylint: disable-msg=protected-access self.assert_redirect_to_register_looks_correct(actions.do_complete(strategy, social_views._do_login)) mako_middleware_process_request(strategy.request) diff --git a/common/djangoapps/user_api/models.py b/common/djangoapps/user_api/models.py index b9675c83c5..e71437214b 100644 --- a/common/djangoapps/user_api/models.py +++ b/common/djangoapps/user_api/models.py @@ -11,7 +11,7 @@ from xmodule_django.models import CourseKeyField # but currently the rest of the system assumes that "student" defines # certain models. For now we will leave the models in "student" and # create an alias in "user_api". -from student.models import UserProfile, Registration, PendingEmailChange # pylint:disable=unused-import +from student.models import UserProfile, Registration, PendingEmailChange # pylint: disable=unused-import class UserPreference(models.Model): diff --git a/common/test/acceptance/tests/discussion/test_cohorts.py b/common/test/acceptance/tests/discussion/test_cohorts.py index 5c2a2e9351..d63afd00e1 100644 --- a/common/test/acceptance/tests/discussion/test_cohorts.py +++ b/common/test/acceptance/tests/discussion/test_cohorts.py @@ -70,7 +70,7 @@ class DiscussionTabSingleThreadTest(UniqueCourseTest): AutoAuthPage(self.browser, course_id=self.course_id).visit() def setup_thread_page(self, thread_id): - self.thread_page = DiscussionTabSingleThreadPage(self.browser, self.course_id, thread_id) # pylint:disable=W0201 + self.thread_page = DiscussionTabSingleThreadPage(self.browser, self.course_id, thread_id) # pylint: disable=W0201 self.thread_page.visit() # pylint: disable=unused-argument @@ -129,7 +129,7 @@ class InlineDiscussionTest(UniqueCourseTest): discussion_page = InlineDiscussionPage(self.browser, self.discussion_id) discussion_page.expand_discussion() self.assertEqual(discussion_page.get_num_displayed_threads(), 1) - self.thread_page = InlineDiscussionThreadPage(self.browser, thread_id) # pylint:disable=W0201 + self.thread_page = InlineDiscussionThreadPage(self.browser, thread_id) # pylint: disable=W0201 self.thread_page.expand() def refresh_thread_page(self, thread_id): diff --git a/common/test/acceptance/tests/discussion/test_discussion.py b/common/test/acceptance/tests/discussion/test_discussion.py index c4dae8872a..8b2c887ed2 100644 --- a/common/test/acceptance/tests/discussion/test_discussion.py +++ b/common/test/acceptance/tests/discussion/test_discussion.py @@ -127,7 +127,7 @@ class DiscussionTabSingleThreadTest(UniqueCourseTest, DiscussionResponsePaginati AutoAuthPage(self.browser, course_id=self.course_id).visit() def setup_thread_page(self, thread_id): - self.thread_page = DiscussionTabSingleThreadPage(self.browser, self.course_id, thread_id) # pylint:disable=W0201 + self.thread_page = DiscussionTabSingleThreadPage(self.browser, self.course_id, thread_id) # pylint: disable=W0201 self.thread_page.visit() def test_marked_answer_comments(self): @@ -318,7 +318,7 @@ class InlineDiscussionTest(UniqueCourseTest, DiscussionResponsePaginationTestMix def setup_thread_page(self, thread_id): self.discussion_page.expand_discussion() self.assertEqual(self.discussion_page.get_num_displayed_threads(), 1) - self.thread_page = InlineDiscussionThreadPage(self.browser, thread_id) # pylint:disable=W0201 + self.thread_page = InlineDiscussionThreadPage(self.browser, thread_id) # pylint: disable=W0201 self.thread_page.expand() def test_initial_render(self):