Merge pull request #9670 from edx/sarina/fix-inherited-tests
Fix Pylint warning for monkey_patch tests
This commit is contained in:
@@ -29,6 +29,9 @@ while patched.
|
||||
# All major functions are documented, the rest are self-evident shells.
|
||||
# pylint: disable=no-member
|
||||
# Pylint doesn't see our decorator `translate_with` add the `_` method.
|
||||
# pylint: disable=test-inherits-tests
|
||||
# This test file intentionally defines one base test class (UgettextTest) and
|
||||
# patches the gettext function under test for all subsequent inheriting classes.
|
||||
from unittest import TestCase
|
||||
|
||||
from ddt import data
|
||||
|
||||
@@ -9,7 +9,6 @@ from student.tests.factories import UserFactory, CourseEnrollmentFactory, AdminF
|
||||
from xmodule.modulestore.tests.django_utils import SharedModuleStoreTestCase
|
||||
from capa.tests.response_xml_factory import StringResponseXMLFactory
|
||||
from courseware.tests.factories import StudentModuleFactory
|
||||
from xmodule.modulestore.django import modulestore
|
||||
|
||||
|
||||
USER_COUNT = 11
|
||||
@@ -80,7 +79,6 @@ class TestGradebook(SharedModuleStoreTestCase):
|
||||
args=(self.course.id.to_deprecated_string(),)
|
||||
))
|
||||
|
||||
def test_response_code(self):
|
||||
self.assertEquals(self.response.status_code, 200)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user