Fix exposed pylint violations
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
"""
|
||||
Common utility functions useful throughout the contentstore
|
||||
"""
|
||||
# pylint: disable=no-member
|
||||
|
||||
import copy
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
"""
|
||||
A new cms ENV configuration to use a slow upload file handler to help test
|
||||
progress bars in uploads
|
||||
"""
|
||||
# pylint: disable=W0614, W0401
|
||||
from .dev import *
|
||||
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
"""
|
||||
Defines a test function, check_has_course_method, useful in various modulestore tests.
|
||||
|
||||
This file should potentially be renamed "utilties" since this file contains no tests.
|
||||
"""
|
||||
from nose.tools import assert_equals, assert_true, assert_false # pylint: disable=no-name-in-module
|
||||
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
"""
|
||||
Unit tests for the Mongo modulestore
|
||||
"""
|
||||
# pylint: disable=no-member
|
||||
# pylint: disable=W0212
|
||||
# pylint: disable=no-name-in-module
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
"""
|
||||
Tests stringify functions used in xmodule html
|
||||
"""
|
||||
from nose.tools import assert_equals # pylint: disable=no-name-in-module
|
||||
from lxml import etree
|
||||
from xmodule.stringify import stringify_children
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
"""
|
||||
Tests of various permissions levels for the comment client
|
||||
"""
|
||||
import string # pylint: disable=W0402
|
||||
import random
|
||||
|
||||
|
||||
@@ -114,6 +114,7 @@ class CoursewareContextTestCase(ModuleStoreTestCase):
|
||||
utils.add_courseware_context(threads, self.course)
|
||||
|
||||
def assertThreadCorrect(thread, discussion, expected_title): # pylint: disable=invalid-name
|
||||
"""Asserts that the given thread has the expected set of properties"""
|
||||
self.assertEqual(
|
||||
set(thread.keys()),
|
||||
set(["commentable_id", "courseware_url", "courseware_title"])
|
||||
|
||||
Reference in New Issue
Block a user