Commit d14c39a1 by Sarina Canelake

Fix exposed pylint violations

parent f2626e68
"""
Common utility functions useful throughout the contentstore
"""
# pylint: disable=no-member
import copy
......
"""
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 *
......
"""
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
......
"""
Unit tests for the Mongo modulestore
"""
# pylint: disable=no-member
# pylint: disable=W0212
# pylint: disable=no-name-in-module
......
"""
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
......
"""
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"])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment