Merge pull request #26598 from edx/jawayria/bom-2408-1
BOM-2408: Removed unused imports from openedx/core/djangoapps/{api_ad…
This commit is contained in:
@@ -7,8 +7,6 @@ from django.contrib.sites.models import Site
|
||||
from django.core.management import call_command
|
||||
from django.core.management.base import CommandError
|
||||
from django.test import TestCase
|
||||
|
||||
from openedx.core.djangoapps.api_admin.management.commands import create_api_access_request
|
||||
from openedx.core.djangoapps.api_admin.models import ApiAccessConfig, ApiAccessRequest
|
||||
from common.djangoapps.student.tests.factories import UserFactory
|
||||
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
"""
|
||||
Test cases for catalog_integrations command.
|
||||
"""
|
||||
|
||||
import pytest
|
||||
from django.test import TestCase # lint-amnesty, pylint: disable=unused-import
|
||||
from django.core.management import call_command, CommandError
|
||||
|
||||
from openedx.core.djangolib.testing.utils import CacheIsolationTestCase
|
||||
|
||||
@@ -14,7 +14,6 @@ from opaque_keys.edx.keys import CourseKey
|
||||
from pytz import UTC
|
||||
|
||||
from common.djangoapps.entitlements.utils import is_course_run_entitlement_fulfillable
|
||||
from openedx.core.constants import COURSE_PUBLISHED # lint-amnesty, pylint: disable=unused-import
|
||||
from openedx.core.djangoapps.catalog.cache import (
|
||||
COURSE_PROGRAMS_CACHE_KEY_TPL,
|
||||
CATALOG_COURSE_PROGRAMS_CACHE_KEY_TPL,
|
||||
|
||||
@@ -5,7 +5,6 @@ The public API for certificates.
|
||||
|
||||
import logging
|
||||
from datetime import datetime
|
||||
|
||||
from pytz import UTC
|
||||
|
||||
from lms.djangoapps.certificates.models import CertificateStatuses, CertificateWhitelist
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
import itertools
|
||||
|
||||
from contextlib import contextmanager
|
||||
from datetime import datetime, timedelta
|
||||
from datetime import datetime
|
||||
|
||||
import ddt
|
||||
import pytz
|
||||
import waffle
|
||||
from django.test import TestCase
|
||||
from edx_toggles.toggles import LegacyWaffleSwitch
|
||||
from edx_toggles.toggles.testutils import override_waffle_switch
|
||||
|
||||
Reference in New Issue
Block a user