chore: Applied lint-amnesty on lms/djangoapps
This commit is contained in:
@@ -16,7 +16,6 @@ from web_fragments.fragment import Fragment
|
||||
from common.djangoapps.student.roles import GlobalStaff
|
||||
from lms.djangoapps.commerce.utils import EcommerceService
|
||||
from lms.djangoapps.learner_dashboard.utils import FAKE_COURSE_KEY, program_tab_view_is_enabled, strip_course_id
|
||||
|
||||
from openedx.core.djangoapps.catalog.constants import PathwayType
|
||||
from openedx.core.djangoapps.catalog.utils import get_pathways, get_programs
|
||||
from openedx.core.djangoapps.credentials.utils import get_credentials_records_url
|
||||
|
||||
@@ -12,8 +12,8 @@ from xblock.fields import Boolean, Dict, Scope, String
|
||||
from xblock.validation import ValidationMessage
|
||||
|
||||
from lms.lib.utils import is_unit
|
||||
from xmodule.modulestore.inheritance import UserPartitionList
|
||||
from xmodule.partitions.partitions import NoSuchUserPartitionError, NoSuchUserPartitionGroupError
|
||||
from xmodule.modulestore.inheritance import UserPartitionList # lint-amnesty, pylint: disable=wrong-import-order
|
||||
from xmodule.partitions.partitions import NoSuchUserPartitionError, NoSuchUserPartitionGroupError # lint-amnesty, pylint: disable=wrong-import-order
|
||||
|
||||
# Please do not remove, this is a workaround for Django 1.8.
|
||||
# more information can be found here: https://openedx.atlassian.net/browse/PLAT-902
|
||||
|
||||
@@ -17,11 +17,11 @@ from openedx.core.djangoapps.user_api.course_tag import api as user_course_tag_a
|
||||
from openedx.core.lib.url_utils import quote_slashes
|
||||
from openedx.core.lib.xblock_services.call_to_action import CallToActionService
|
||||
from openedx.core.lib.xblock_utils import wrap_xblock_aside, xblock_local_resource_url
|
||||
from xmodule.library_tools import LibraryToolsService
|
||||
from xmodule.modulestore.django import ModuleI18nService, modulestore
|
||||
from xmodule.partitions.partitions_service import PartitionService
|
||||
from xmodule.services import SettingsService, TeamsConfigurationService
|
||||
from xmodule.x_module import ModuleSystem
|
||||
from xmodule.library_tools import LibraryToolsService # lint-amnesty, pylint: disable=wrong-import-order
|
||||
from xmodule.modulestore.django import ModuleI18nService, modulestore # lint-amnesty, pylint: disable=wrong-import-order
|
||||
from xmodule.partitions.partitions_service import PartitionService # lint-amnesty, pylint: disable=wrong-import-order
|
||||
from xmodule.services import SettingsService, TeamsConfigurationService # lint-amnesty, pylint: disable=wrong-import-order
|
||||
from xmodule.x_module import ModuleSystem # lint-amnesty, pylint: disable=wrong-import-order
|
||||
|
||||
|
||||
def handler_url(block, handler_name, suffix='', query='', thirdparty=False):
|
||||
|
||||
@@ -19,9 +19,9 @@ from common.djangoapps.student.tests.factories import UserFactory
|
||||
from lms.djangoapps.badges.tests.factories import BadgeClassFactory
|
||||
from lms.djangoapps.badges.tests.test_models import get_image
|
||||
from lms.djangoapps.lms_xblock.runtime import LmsModuleSystem
|
||||
from xmodule.modulestore.django import ModuleI18nService
|
||||
from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase
|
||||
from xmodule.modulestore.tests.factories import CourseFactory
|
||||
from xmodule.modulestore.django import ModuleI18nService # 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 # lint-amnesty, pylint: disable=wrong-import-order
|
||||
|
||||
|
||||
class BlockMock(Mock):
|
||||
|
||||
@@ -11,9 +11,9 @@ from opaque_keys.edx.keys import CourseKey, UsageKey
|
||||
from common.djangoapps.student.tests.factories import UserFactory
|
||||
from lms.djangoapps.lti_provider.management.commands import resend_lti_scores
|
||||
from lms.djangoapps.lti_provider.models import GradedAssignment, LtiConsumer, OutcomeService
|
||||
from xmodule.modulestore.tests.django_utils import SharedModuleStoreTestCase
|
||||
from xmodule.modulestore.tests.utils import TEST_DATA_DIR
|
||||
from xmodule.modulestore.xml_importer import import_course_from_xml
|
||||
from xmodule.modulestore.tests.django_utils import SharedModuleStoreTestCase # lint-amnesty, pylint: disable=wrong-import-order
|
||||
from xmodule.modulestore.tests.utils import TEST_DATA_DIR # lint-amnesty, pylint: disable=wrong-import-order
|
||||
from xmodule.modulestore.xml_importer import import_course_from_xml # lint-amnesty, pylint: disable=wrong-import-order
|
||||
|
||||
|
||||
class CommandArgsTestCase(TestCase):
|
||||
|
||||
@@ -12,7 +12,7 @@ import lms.djangoapps.lti_provider.outcomes as outcomes
|
||||
from lms.djangoapps.grades.api import signals as grades_signals
|
||||
from lms.djangoapps.lti_provider.tasks import send_composite_outcome, send_leaf_outcome
|
||||
from lms.djangoapps.lti_provider.views import parse_course_and_usage_keys
|
||||
from xmodule.modulestore.django import modulestore
|
||||
from xmodule.modulestore.django import modulestore # lint-amnesty, pylint: disable=wrong-import-order
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import lms.djangoapps.lti_provider.outcomes as outcomes
|
||||
from lms import CELERY_APP
|
||||
from lms.djangoapps.grades.api import CourseGradeFactory
|
||||
from lms.djangoapps.lti_provider.models import GradedAssignment
|
||||
from xmodule.modulestore.django import modulestore
|
||||
from xmodule.modulestore.django import modulestore # lint-amnesty, pylint: disable=wrong-import-order
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -12,8 +12,8 @@ from opaque_keys.edx.locator import BlockUsageLocator, CourseLocator
|
||||
import lms.djangoapps.lti_provider.outcomes as outcomes
|
||||
from common.djangoapps.student.tests.factories import UserFactory
|
||||
from lms.djangoapps.lti_provider.models import GradedAssignment, LtiConsumer, OutcomeService
|
||||
from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase
|
||||
from xmodule.modulestore.tests.factories import CourseFactory, ItemFactory, check_mongo_calls
|
||||
from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase # lint-amnesty, pylint: disable=wrong-import-order
|
||||
from xmodule.modulestore.tests.factories import CourseFactory, ItemFactory, check_mongo_calls # lint-amnesty, pylint: disable=wrong-import-order
|
||||
|
||||
|
||||
class StoreOutcomeParametersTest(TestCase):
|
||||
|
||||
@@ -13,7 +13,7 @@ from opaque_keys.edx.locator import BlockUsageLocator, CourseLocator
|
||||
from common.djangoapps.student.tests.factories import UserFactory
|
||||
from lms.djangoapps.courseware.testutils import RenderXBlockTestMixin
|
||||
from lms.djangoapps.lti_provider import models, views
|
||||
from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase
|
||||
from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase # lint-amnesty, pylint: disable=wrong-import-order
|
||||
|
||||
LTI_DEFAULT_PARAMS = {
|
||||
'roles': 'Instructor,urn:lti:instrole:ims/lis/Administrator',
|
||||
|
||||
Reference in New Issue
Block a user