Skip to content

Commit

Permalink
fix: Remove unused imports.
Browse files Browse the repository at this point in the history
This code is being put back temporarily but rather than just ignoring
these unused imports, we may as well fix them.
  • Loading branch information
feanil committed Jan 17, 2025
1 parent 2f57a9d commit 93ec261
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
7 changes: 1 addition & 6 deletions cms/djangoapps/maintenance/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,15 @@
"""


import json

import ddt
from django.conf import settings
from django.urls import reverse

from cms.djangoapps.contentstore.management.commands.utils import get_course_versions
from common.djangoapps.student.tests.factories import AdminFactory, UserFactory
from openedx.features.announcements.models import Announcement
from xmodule.modulestore.django import modulestore # lint-amnesty, pylint: disable=wrong-import-order
from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase # lint-amnesty, pylint: disable=wrong-import-order
from xmodule.modulestore.tests.factories import CourseFactory, BlockFactory # lint-amnesty, pylint: disable=wrong-import-order

from .views import COURSE_KEY_ERROR_MESSAGES, MAINTENANCE_VIEWS
from .views import MAINTENANCE_VIEWS

# This list contains URLs of all maintenance app views.
MAINTENANCE_URLS = [reverse(view['url']) for view in MAINTENANCE_VIEWS.values()]
Expand Down
3 changes: 0 additions & 3 deletions cms/djangoapps/maintenance/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,14 @@
import logging

from django.core.validators import ValidationError
from django.db import transaction
from django.urls import reverse, reverse_lazy
from django.utils.decorators import method_decorator
from django.utils.translation import gettext as _
from django.views.generic import View
from django.views.generic.edit import CreateView, DeleteView, UpdateView
from django.views.generic.list import ListView
from opaque_keys import InvalidKeyError
from opaque_keys.edx.keys import CourseKey

from cms.djangoapps.contentstore.management.commands.utils import get_course_versions
from common.djangoapps.edxmako.shortcuts import render_to_response
from common.djangoapps.util.json_request import JsonResponse
from common.djangoapps.util.views import require_global_staff
Expand Down

0 comments on commit 93ec261

Please sign in to comment.