diff --git a/lms/djangoapps/branding/__init__.py b/lms/djangoapps/branding/__init__.py index b7ce3e1df5..55690aed17 100644 --- a/lms/djangoapps/branding/__init__.py +++ b/lms/djangoapps/branding/__init__.py @@ -1,4 +1,4 @@ -""" +""" # lint-amnesty, pylint: disable=django-not-configured EdX Branding package. Provides a way to retrieve "branded" parts of the site. diff --git a/lms/djangoapps/branding/models.py b/lms/djangoapps/branding/models.py index 5557a2aa1f..c05f7d0148 100644 --- a/lms/djangoapps/branding/models.py +++ b/lms/djangoapps/branding/models.py @@ -43,7 +43,7 @@ class BrandingInfoConfig(ConfigurationModel): try: json.loads(self.configuration) except ValueError: - raise ValidationError('Must be valid JSON string.') + raise ValidationError('Must be valid JSON string.') # lint-amnesty, pylint: disable=raise-missing-from @classmethod def get_config(cls): diff --git a/lms/djangoapps/branding/tests/test_api.py b/lms/djangoapps/branding/tests/test_api.py index f832edd0f3..d2d6ffdc3f 100644 --- a/lms/djangoapps/branding/tests/test_api.py +++ b/lms/djangoapps/branding/tests/test_api.py @@ -9,7 +9,7 @@ from django.test.utils import override_settings from django.urls import reverse from ..api import _footer_business_links, get_footer, get_home_url, get_logo_url -from openedx.core.djangoapps.site_configuration.tests.test_util import with_site_configuration +from openedx.core.djangoapps.site_configuration.tests.test_util import with_site_configuration # lint-amnesty, pylint: disable=wrong-import-order test_config_disabled_contact_us = { # pylint: disable=invalid-name "CONTACT_US_ENABLE": False, diff --git a/lms/djangoapps/branding/tests/test_models.py b/lms/djangoapps/branding/tests/test_models.py index 03a63871db..710c0c23b1 100644 --- a/lms/djangoapps/branding/tests/test_models.py +++ b/lms/djangoapps/branding/tests/test_models.py @@ -15,7 +15,7 @@ class BrandingInfoConfigTest(TestCase): """ def setUp(self): - super(BrandingInfoConfigTest, self).setUp() + super(BrandingInfoConfigTest, self).setUp() # lint-amnesty, pylint: disable=super-with-arguments self.configuration_string = """{ "CN": { "url": "http://www.xuetangx.com", diff --git a/lms/djangoapps/branding/tests/test_page.py b/lms/djangoapps/branding/tests/test_page.py index a02de89797..1f6a09235b 100644 --- a/lms/djangoapps/branding/tests/test_page.py +++ b/lms/djangoapps/branding/tests/test_page.py @@ -44,7 +44,7 @@ class AnonymousIndexPageTest(ModuleStoreTestCase): Tests that anonymous users can access the '/' page, Need courses with start date """ def setUp(self): - super(AnonymousIndexPageTest, self).setUp() + super(AnonymousIndexPageTest, self).setUp() # lint-amnesty, pylint: disable=super-with-arguments self.factory = RequestFactory() self.course = CourseFactory.create( days_early_for_beta=5, @@ -161,7 +161,7 @@ class IndexPageCourseCardsSortingTests(ModuleStoreTestCase): ENABLED_SIGNALS = ['course_published'] def setUp(self): - super(IndexPageCourseCardsSortingTests, self).setUp() + super(IndexPageCourseCardsSortingTests, self).setUp() # lint-amnesty, pylint: disable=super-with-arguments self.starting_later = CourseFactory.create( org='MITx', number='1000', diff --git a/lms/djangoapps/branding/tests/test_views.py b/lms/djangoapps/branding/tests/test_views.py index 4424496732..4b6877d184 100644 --- a/lms/djangoapps/branding/tests/test_views.py +++ b/lms/djangoapps/branding/tests/test_views.py @@ -8,7 +8,7 @@ import ddt import mock import six from django.conf import settings -from django.contrib.auth.models import User +from django.contrib.auth.models import User # lint-amnesty, pylint: disable=imported-auth-user from django.test import TestCase from django.urls import reverse @@ -278,7 +278,7 @@ class TestIndex(SiteMixin, TestCase): def setUp(self): """ Set up a user """ - super(TestIndex, self).setUp() + super(TestIndex, self).setUp() # lint-amnesty, pylint: disable=super-with-arguments patcher = mock.patch("common.djangoapps.student.models.tracker") self.mock_tracker = patcher.start() diff --git a/lms/djangoapps/branding/views.py b/lms/djangoapps/branding/views.py index 346a0c8b7c..50ce3d932b 100644 --- a/lms/djangoapps/branding/views.py +++ b/lms/djangoapps/branding/views.py @@ -9,7 +9,7 @@ from django.core.cache import cache from django.db import transaction from django.http import Http404, HttpResponse from django.shortcuts import redirect -from django.urls import reverse +from django.urls import reverse # lint-amnesty, pylint: disable=unused-import from django.urls.exceptions import NoReverseMatch from django.utils import translation from django.utils.translation.trans_real import get_supported_language_variant @@ -309,7 +309,7 @@ def footer(request): with translation.override(language): footer_dict = branding_api.get_footer(is_secure=request.is_secure()) cache.set(cache_key, footer_dict, settings.FOOTER_CACHE_TIMEOUT) - return JsonResponse(footer_dict, 200, content_type="application/json; charset=utf-8") + return JsonResponse(footer_dict, 200, content_type="application/json; charset=utf-8") # lint-amnesty, pylint: disable=redundant-content-type-for-json-response else: return HttpResponse(status=406) diff --git a/lms/djangoapps/certificates/migrations/__pycache__/0010_certificatetemplate_language.cpython-38.pyc.140625665085040 b/lms/djangoapps/certificates/migrations/__pycache__/0010_certificatetemplate_language.cpython-38.pyc.140625665085040 new file mode 100644 index 0000000000..e69de29bb2