From 731ccc8ce3ce5384f1e07591b23f423cdaa4ff4c Mon Sep 17 00:00:00 2001 From: Jawayria Date: Thu, 4 Feb 2021 14:40:28 +0500 Subject: [PATCH] Applied pylint-amnesty to openedx/core/djangoapps/{session_inactivity_timeout, signals, site_configurations} --- openedx/core/djangoapps/site_configuration/__init__.py | 2 +- openedx/core/djangoapps/site_configuration/helpers.py | 2 +- .../tests/test_create_or_update_site_configuration.py | 2 +- openedx/core/djangoapps/site_configuration/tests/mixins.py | 2 +- .../djangoapps/site_configuration/tests/test_middleware.py | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/openedx/core/djangoapps/site_configuration/__init__.py b/openedx/core/djangoapps/site_configuration/__init__.py index f470c9b9eb..73853402dc 100644 --- a/openedx/core/djangoapps/site_configuration/__init__.py +++ b/openedx/core/djangoapps/site_configuration/__init__.py @@ -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. diff --git a/openedx/core/djangoapps/site_configuration/helpers.py b/openedx/core/djangoapps/site_configuration/helpers.py index 9873a871b7..a910c4fb71 100644 --- a/openedx/core/djangoapps/site_configuration/helpers.py +++ b/openedx/core/djangoapps/site_configuration/helpers.py @@ -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. diff --git a/openedx/core/djangoapps/site_configuration/management/commands/tests/test_create_or_update_site_configuration.py b/openedx/core/djangoapps/site_configuration/management/commands/tests/test_create_or_update_site_configuration.py index 3ac489bed1..0a740b8082 100644 --- a/openedx/core/djangoapps/site_configuration/management/commands/tests/test_create_or_update_site_configuration.py +++ b/openedx/core/djangoapps/site_configuration/management/commands/tests/test_create_or_update_site_configuration.py @@ -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" diff --git a/openedx/core/djangoapps/site_configuration/tests/mixins.py b/openedx/core/djangoapps/site_configuration/tests/mixins.py index f08aca3541..9c52613abe 100644 --- a/openedx/core/djangoapps/site_configuration/tests/mixins.py +++ b/openedx/core/djangoapps/site_configuration/tests/mixins.py @@ -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 = { diff --git a/openedx/core/djangoapps/site_configuration/tests/test_middleware.py b/openedx/core/djangoapps/site_configuration/tests/test_middleware.py index ff8ca7c34b..42e9e00527 100644 --- a/openedx/core/djangoapps/site_configuration/tests/test_middleware.py +++ b/openedx/core/djangoapps/site_configuration/tests/test_middleware.py @@ -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')