Applied pylint-amnesty to openedx/core/djangoapps/{session_inactivity_timeout, signals, site_configurations}
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
"""
|
||||
""" # lint-amnesty, pylint: disable=django-not-configured
|
||||
This app is used for creating/updating site's configuration. This app encapsulate configuration related logic for sites
|
||||
and provides a way for sites to override default/system behavioural or presentation logic.
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@ def get_configuration_dict(name, default=None):
|
||||
return output
|
||||
|
||||
|
||||
def get_value(val_name, default=None, **kwargs):
|
||||
def get_value(val_name, default=None, **kwargs): # lint-amnesty, pylint: disable=unused-argument
|
||||
"""
|
||||
Return configuration value for the key specified as name argument.
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ class CreateOrUpdateSiteConfigurationTest(TestCase):
|
||||
command = 'create_or_update_site_configuration'
|
||||
|
||||
def setUp(self):
|
||||
super(CreateOrUpdateSiteConfigurationTest, self).setUp()
|
||||
super(CreateOrUpdateSiteConfigurationTest, self).setUp() # lint-amnesty, pylint: disable=super-with-arguments
|
||||
self.site_id = 1
|
||||
self.site_id_arg = ['--site-id', str(self.site_id)]
|
||||
self.json_file_path = Path(__file__).parent / "fixtures/config1.json"
|
||||
|
||||
@@ -11,7 +11,7 @@ class SiteMixin(object):
|
||||
Mixin for setting up Site framework models
|
||||
"""
|
||||
def setUp(self):
|
||||
super(SiteMixin, self).setUp()
|
||||
super(SiteMixin, self).setUp() # lint-amnesty, pylint: disable=super-with-arguments
|
||||
|
||||
self.site = SiteFactory.create()
|
||||
site_config = {
|
||||
|
||||
@@ -23,7 +23,7 @@ class SessionCookieDomainTests(TestCase):
|
||||
"""
|
||||
|
||||
def setUp(self):
|
||||
super(SessionCookieDomainTests, self).setUp()
|
||||
super(SessionCookieDomainTests, self).setUp() # lint-amnesty, pylint: disable=super-with-arguments
|
||||
# Create a test client, and log it in so that it will save some session
|
||||
# data.
|
||||
self.user = UserFactory.create()
|
||||
@@ -62,7 +62,7 @@ class SessionCookieDomainSiteConfigurationOverrideTests(TestCase):
|
||||
"""
|
||||
|
||||
def setUp(self):
|
||||
super(SessionCookieDomainSiteConfigurationOverrideTests, self).setUp()
|
||||
super(SessionCookieDomainSiteConfigurationOverrideTests, self).setUp() # lint-amnesty, pylint: disable=super-with-arguments
|
||||
# Create a test client, and log it in so that it will save some session data.
|
||||
self.user = UserFactory.create()
|
||||
self.user.set_password('password')
|
||||
|
||||
Reference in New Issue
Block a user