Refactor: Removed unused imports

Removed unused imports from openedx/core/djangoapps/{theming, user_authn, xblock}
This commit is contained in:
Jawayria
2021-02-17 18:45:59 +05:00
parent 401789dad3
commit 6ad42655b4
6 changed files with 3 additions and 7 deletions

View File

@@ -6,7 +6,6 @@ Test helpers for Comprehensive Theming.
from unittest.mock import Mock, patch
from django.conf import settings
from django.test import TestCase, override_settings
from edx_django_utils.cache import RequestCache # lint-amnesty, pylint: disable=unused-import
from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers
from openedx.core.djangoapps.theming import helpers as theming_helpers

View File

@@ -9,7 +9,7 @@ from django.test import TestCase
from django.urls import reverse
from openedx.core.djangoapps.theming.tests.test_util import with_comprehensive_theme
from openedx.core.djangolib.testing.utils import skip_unless_cms, skip_unless_lms # lint-amnesty, pylint: disable=unused-import
from openedx.core.djangolib.testing.utils import skip_unless_lms # lint-amnesty, pylint: disable=unused-import
from common.djangoapps.student.tests.factories import UserFactory

View File

@@ -10,8 +10,6 @@ from django.utils import http
from oauth2_provider.models import Application
from six.moves.urllib.parse import urlparse # pylint: disable=import-error
from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers # lint-amnesty, pylint: disable=unused-import
def is_safe_login_or_logout_redirect(redirect_to, request_host, dot_client_id, require_https):
"""

View File

@@ -10,7 +10,7 @@ from django.contrib.auth import get_user_model
from django.views.decorators.clickjacking import xframe_options_exempt
from django.views.decorators.csrf import csrf_exempt
from rest_framework import permissions
from rest_framework.decorators import api_view, permission_classes, authentication_classes # lint-amnesty, pylint: disable=unused-import
from rest_framework.decorators import api_view, permission_classes # lint-amnesty, pylint: disable=unused-import
from rest_framework.exceptions import PermissionDenied, AuthenticationFailed
from rest_framework.response import Response
from xblock.django.request import DjangoWebobRequest, webob_to_django_response
@@ -22,6 +22,7 @@ from ..api import (
get_handler_url as _get_handler_url,
load_block,
render_block_view as _render_block_view,
)
from ..utils import validate_secure_token_for_xblock_handler

View File

@@ -9,7 +9,6 @@ from freezegun import freeze_time
from openedx.core.djangoapps.xblock.utils import ( # lint-amnesty, pylint: disable=reimported
get_secure_token_for_xblock_handler,
validate_secure_token_for_xblock_handler,
_get_secure_token_for_xblock_handler,
validate_secure_token_for_xblock_handler
)

View File

@@ -10,7 +10,6 @@ from uuid import uuid4
import crum
from django.conf import settings
from six import text_type # lint-amnesty, pylint: disable=unused-import
def get_secure_token_for_xblock_handler(user_id, block_key_str, time_idx=0):