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:
Jawayria
2021-04-02 19:38:00 +05:00
committed by GitHub
5 changed files with 2 additions and 9 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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,

View File

@@ -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

View File

@@ -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