Remove useless pylint suppressions

This commit is contained in:
Ned Batchelder
2015-11-21 20:39:35 -05:00
parent 7a858b6e09
commit f5d0f3ff55
225 changed files with 329 additions and 438 deletions

View File

@@ -509,7 +509,6 @@ class SignatorySectionPage(CertificatesPage):
"""
Delete the signatory
"""
# pylint: disable=pointless-statement
self.wait_for_signatory_delete_icon()
self.click_signatory_delete_icon()
self.wait_for_signatory_delete_prompt()

View File

@@ -75,7 +75,7 @@ class LmsDashboardPageTest(BaseLmsDashboardTest):
Validate the behavior of the social sharing feature
"""
twitter_widget = self.dashboard_page.get_course_social_sharing_widget('twitter')
twitter_url = "https://twitter.com/intent/tweet?text=Testing+feature%3A%20http%3A%2F%2Fcustom%2Fcourse%2Furl" # pylint: disable=line-too-long
twitter_url = "https://twitter.com/intent/tweet?text=Testing+feature%3A%20http%3A%2F%2Fcustom%2Fcourse%2Furl"
self.assertEqual(twitter_widget.attrs('title')[0], 'Share on Twitter')
self.assertEqual(twitter_widget.attrs('data-tooltip')[0], 'Share on Twitter')
self.assertEqual(twitter_widget.attrs('aria-haspopup')[0], 'true')

View File

@@ -115,7 +115,7 @@ class StudioLibraryTest(WebAppTest):
"""
as_staff = True
def setUp(self): # pylint: disable=arguments-differ
def setUp(self):
"""
Install a library with no content using a fixture.
"""

View File

@@ -62,7 +62,7 @@ class TestLibraryExport(ExportTestMixin, StudioLibraryTest):
"""
Export tests for libraries.
"""
def setUp(self): # pylint: disable=arguments-differ
def setUp(self):
"""
Ensure a library exists and navigate to the library edit page.
"""

View File

@@ -32,9 +32,9 @@ class CourseTeamPageTest(StudioCourseTest):
"""
super(CourseTeamPageTest, self).setUp(is_staff)
self.other_user = self._make_user('other') # pylint:disable=attribute-defined-outside-init
self.dashboard_page = DashboardPage(self.browser) # pylint:disable=attribute-defined-outside-init
self.page = CourseTeamPage( # pylint:disable=attribute-defined-outside-init
self.other_user = self._make_user('other')
self.dashboard_page = DashboardPage(self.browser)
self.page = CourseTeamPage(
self.browser, self.course_info['org'], self.course_info['number'], self.course_info['run']
)
self._go_to_course_team_page()

View File

@@ -19,7 +19,7 @@ class LibraryEditPageTest(StudioLibraryTest):
"""
Test the functionality of the library edit page.
"""
def setUp(self): # pylint: disable=arguments-differ
def setUp(self):
"""
Ensure a library exists and navigate to the library edit page.
"""
@@ -192,7 +192,7 @@ class LibraryNavigationTest(StudioLibraryTest):
"""
Test common Navigation actions
"""
def setUp(self): # pylint: disable=arguments-differ
def setUp(self):
"""
Ensure a library exists and navigate to the library edit page.
"""
@@ -206,7 +206,6 @@ class LibraryNavigationTest(StudioLibraryTest):
Create four pages worth of XBlocks, and offset by one so each is named
after the number they should be in line by the user's perception.
"""
# pylint: disable=attribute-defined-outside-init
self.blocks = [XBlockFixtureDesc('html', str(i)) for i in xrange(1, 41)]
library_fixture.add_children(*self.blocks)