From 3a05726eaf36acd2d5e417585e9ed07cc2f59bf1 Mon Sep 17 00:00:00 2001 From: Sarina Canelake Date: Tue, 8 Sep 2015 20:07:24 -0400 Subject: [PATCH 1/2] Fix Pylint warning for monkey_patch tests --- .../monkey_patch/tests/test_django_utils_translation.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/djangoapps/monkey_patch/tests/test_django_utils_translation.py b/common/djangoapps/monkey_patch/tests/test_django_utils_translation.py index 2e9db80bdf..109d2a40f0 100644 --- a/common/djangoapps/monkey_patch/tests/test_django_utils_translation.py +++ b/common/djangoapps/monkey_patch/tests/test_django_utils_translation.py @@ -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 From b19a0e71d39c65e6670c09ac192409421ef2f4d3 Mon Sep 17 00:00:00 2001 From: Sarina Canelake Date: Tue, 8 Sep 2015 20:11:49 -0400 Subject: [PATCH 2/2] Fix pylint issues in spoc_gradebook test --- lms/djangoapps/instructor/tests/test_spoc_gradebook.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/lms/djangoapps/instructor/tests/test_spoc_gradebook.py b/lms/djangoapps/instructor/tests/test_spoc_gradebook.py index 8da7e4d835..aa9b09abfb 100644 --- a/lms/djangoapps/instructor/tests/test_spoc_gradebook.py +++ b/lms/djangoapps/instructor/tests/test_spoc_gradebook.py @@ -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)