Applied pylint-amnesty to coursewarehistoryextended

This commit is contained in:
Jawayria
2021-02-01 20:09:02 +05:00
parent c059acc8ae
commit 2ce363abb0
2 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
from django.apps import AppConfig
from django.apps import AppConfig # lint-amnesty, pylint: disable=missing-module-docstring
class CoursewareHistoryExtendedConfig(AppConfig):

View File

@@ -22,10 +22,10 @@ from lms.djangoapps.courseware.tests.factories import StudentModuleFactory, cour
class TestStudentModuleHistoryBackends(TestCase):
""" Tests of data in CSMH and CSMHE """
# Tell Django to clean out all databases, not just default
databases = {alias for alias in connections}
databases = {alias for alias in connections} # lint-amnesty, pylint: disable=unnecessary-comprehension
def setUp(self):
super(TestStudentModuleHistoryBackends, self).setUp()
super(TestStudentModuleHistoryBackends, self).setUp() # lint-amnesty, pylint: disable=super-with-arguments
for record in (1, 2, 3):
# This will store into CSMHE via the post_save signal
csm = StudentModuleFactory.create(module_state_key=location('usage_id'),