Reorder LMS imports using isort
This commit is contained in:
@@ -2,8 +2,9 @@
|
||||
Django admin dashboard configuration for LMS XBlock infrastructure.
|
||||
"""
|
||||
|
||||
from django.contrib import admin
|
||||
from config_models.admin import ConfigurationModelAdmin
|
||||
from django.contrib import admin
|
||||
|
||||
from lms.djangoapps.lms_xblock.models import XBlockAsidesConfig
|
||||
|
||||
admin.site.register(XBlockAsidesConfig, ConfigurationModelAdmin)
|
||||
|
||||
@@ -4,10 +4,10 @@ Namespace that defines fields common to all blocks used in the LMS
|
||||
|
||||
#from django.utils.translation import ugettext_noop as _
|
||||
from lazy import lazy
|
||||
|
||||
from xblock.core import XBlock
|
||||
from xblock.fields import Boolean, Scope, String, XBlockMixin, Dict
|
||||
from xblock.fields import Boolean, Dict, Scope, String, XBlockMixin
|
||||
from xblock.validation import ValidationMessage
|
||||
|
||||
from xmodule.modulestore.inheritance import UserPartitionList
|
||||
from xmodule.partitions.partitions import NoSuchUserPartitionError, NoSuchUserPartitionGroupError
|
||||
|
||||
|
||||
@@ -6,10 +6,8 @@ Includes:
|
||||
rendered in the LMS.
|
||||
"""
|
||||
|
||||
from django.db.models import TextField
|
||||
|
||||
from config_models.models import ConfigurationModel
|
||||
|
||||
from django.db.models import TextField
|
||||
from xblock.core import XBlockAside
|
||||
|
||||
|
||||
|
||||
@@ -1,24 +1,23 @@
|
||||
"""
|
||||
Module implementing `xblock.runtime.Runtime` functionality for the LMS
|
||||
"""
|
||||
import xblock.reference.plugins
|
||||
from django.conf import settings
|
||||
from django.core.urlresolvers import reverse
|
||||
|
||||
from badges.service import BadgingService
|
||||
from badges.utils import badges_enabled
|
||||
from lms.djangoapps.lms_xblock.models import XBlockAsidesConfig
|
||||
from openedx.core.djangoapps.user_api.course_tag import api as user_course_tag_api
|
||||
from openedx.core.lib.xblock_utils import xblock_local_resource_url
|
||||
from openedx.core.lib.url_utils import quote_slashes
|
||||
from openedx.core.lib.xblock_utils import xblock_local_resource_url
|
||||
from request_cache.middleware import RequestCache
|
||||
import xblock.reference.plugins
|
||||
from xmodule.library_tools import LibraryToolsService
|
||||
from xmodule.modulestore.django import modulestore, ModuleI18nService
|
||||
from xmodule.modulestore.django import ModuleI18nService, modulestore
|
||||
from xmodule.partitions.partitions_service import PartitionService
|
||||
from xmodule.services import SettingsService
|
||||
from xmodule.x_module import ModuleSystem
|
||||
|
||||
from lms.djangoapps.lms_xblock.models import XBlockAsidesConfig
|
||||
|
||||
|
||||
def handler_url(block, handler_name, suffix='', query='', thirdparty=False):
|
||||
"""
|
||||
|
||||
@@ -2,24 +2,23 @@
|
||||
Tests of the LMS XBlock Runtime and associated utilities
|
||||
"""
|
||||
|
||||
from django.conf import settings
|
||||
from ddt import ddt, data
|
||||
from django.test import TestCase
|
||||
from mock import Mock, patch
|
||||
from urlparse import urlparse
|
||||
|
||||
from ddt import data, ddt
|
||||
from django.conf import settings
|
||||
from django.test import TestCase
|
||||
from mock import Mock, patch
|
||||
from opaque_keys.edx.keys import CourseKey
|
||||
from opaque_keys.edx.locations import BlockUsageLocator, CourseLocator, SlashSeparatedCourseKey
|
||||
from xblock.exceptions import NoSuchServiceError
|
||||
from xblock.fields import ScopeIds
|
||||
|
||||
from badges.tests.factories import BadgeClassFactory
|
||||
from badges.tests.test_models import get_image
|
||||
from lms.djangoapps.lms_xblock.runtime import LmsModuleSystem
|
||||
from xblock.fields import ScopeIds
|
||||
from student.tests.factories import UserFactory
|
||||
from xmodule.modulestore.django import ModuleI18nService
|
||||
from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase
|
||||
from xblock.exceptions import NoSuchServiceError
|
||||
|
||||
from student.tests.factories import UserFactory
|
||||
from xmodule.modulestore.tests.factories import CourseFactory
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user