pylint amnesty in heartbeat,header_control and lang_pref (#26369)

This commit is contained in:
M. Zulqarnain
2021-02-04 15:32:10 +05:00
committed by GitHub
parent b6b6489b96
commit 99c169c444
15 changed files with 21 additions and 21 deletions

View File

@@ -1,4 +1,4 @@
"""
""" # lint-amnesty, pylint: disable=django-not-configured
This middleware is used for adjusting the headers in a response before it is sent to the end user.
This middleware is intended to sit as close as possible to the top of the middleare list as possible,

View File

@@ -11,7 +11,7 @@ from openedx.core.djangoapps.header_control.middleware import HeaderControlMiddl
class TestHeaderControlMiddlewareProcessResponse(TestCase):
"""Test the `header_control` middleware. """
def setUp(self):
super(TestHeaderControlMiddlewareProcessResponse, self).setUp()
super(TestHeaderControlMiddlewareProcessResponse, self).setUp() # lint-amnesty, pylint: disable=super-with-arguments
self.middleware = HeaderControlMiddleware()
def test_doesnt_barf_if_not_modifying_anything(self):