Fix all E303 pep8 errors.
This commit is contained in:
@@ -3,7 +3,6 @@ Configuration for Studio API Django application
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ URLs for the Studio API app
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from django.conf.urls import include, url
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""Tests for course run serializers"""
|
||||
|
||||
|
||||
|
||||
import datetime
|
||||
|
||||
import ddt
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""Tests for Course run views"""
|
||||
|
||||
|
||||
|
||||
import datetime
|
||||
|
||||
import ddt
|
||||
|
||||
@@ -3,7 +3,6 @@ URLs for the Studio API [Course Run]
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from rest_framework.routers import DefaultRouter
|
||||
|
||||
from .views.course_runs import CourseRunViewSet
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""HTTP endpoints for the Course Run API."""
|
||||
|
||||
|
||||
|
||||
from django.conf import settings
|
||||
from django.http import Http404
|
||||
from edx_rest_framework_extensions.auth.jwt.authentication import JwtAuthentication
|
||||
|
||||
@@ -4,7 +4,6 @@ Signal handlers are connected here.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ Celery tasks used by cms_user_tasks
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from boto.exception import NoAuthHandlerFound
|
||||
from celery.exceptions import MaxRetriesExceededError
|
||||
from celery.task import task
|
||||
|
||||
@@ -3,7 +3,6 @@ Unit tests for integration of the django-user-tasks app and its REST API.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import logging
|
||||
from uuid import uuid4
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ Admin site bindings for contentstore
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from config_models.admin import ConfigurationModelAdmin
|
||||
from django.contrib import admin
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ Above-modulestore level signal handlers are connected here.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""Util methods for Waffle checks"""
|
||||
|
||||
|
||||
|
||||
from cms.djangoapps.contentstore.config.waffle import ENABLE_CHECKLISTS_QUALITY
|
||||
|
||||
|
||||
|
||||
@@ -13,7 +13,6 @@ Current db representation:
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import logging
|
||||
import re
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
""" Upload file handler to help test progress bars in uploads. """
|
||||
|
||||
|
||||
|
||||
import time
|
||||
|
||||
from django.core.files.uploadhandler import FileUploadHandler
|
||||
|
||||
@@ -4,7 +4,6 @@ committing and pushing the changes.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import logging
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
@@ -4,7 +4,6 @@ erroneous certificate names.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from collections import namedtuple
|
||||
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""Script to Empty the trashcan"""
|
||||
|
||||
|
||||
|
||||
from django.core.management.base import BaseCommand
|
||||
from opaque_keys.edx.keys import CourseKey
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@ At present, it differs from Studio exports in several ways:
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
|
||||
@@ -14,7 +14,6 @@ attribute is set and the FEATURE['ENABLE_EXPORT_GIT'] is set.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import logging
|
||||
|
||||
from django.core.management.base import BaseCommand, CommandError
|
||||
|
||||
@@ -3,7 +3,6 @@ Command to migrate transcripts to django storage.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import logging
|
||||
|
||||
from django.core.management import BaseCommand, CommandError
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""Management command to restore assets from trash"""
|
||||
|
||||
|
||||
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
from xmodule.contentstore.utils import restore_asset_from_trashcan
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""Tests running the delete_orphan command"""
|
||||
|
||||
|
||||
|
||||
import ddt
|
||||
import six
|
||||
from django.core.management import CommandError, call_command
|
||||
|
||||
@@ -3,7 +3,6 @@ Tests for exporting OLX content.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import shutil
|
||||
import tarfile
|
||||
import unittest
|
||||
|
||||
@@ -3,7 +3,6 @@ Tests for the fix_not_found management command
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import six
|
||||
from django.core.management import CommandError, call_command
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ Unittests for exporting to git via management command.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import copy
|
||||
import os
|
||||
import shutil
|
||||
|
||||
@@ -3,7 +3,6 @@ Unittests for importing a course via management command
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import os
|
||||
import shutil
|
||||
import tempfile
|
||||
|
||||
@@ -3,7 +3,6 @@ Models for contentstore
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from config_models.models import ConfigurationModel
|
||||
from django.db.models.fields import TextField
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ Code related to the handling of Proctored Exams in Studio
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import logging
|
||||
|
||||
import six
|
||||
|
||||
@@ -3,7 +3,6 @@ Authorization rules related to content management.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import user_tasks.rules
|
||||
|
||||
user_tasks.rules.add_rules()
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
""" receivers of course_published and library_updated events in order to trigger indexing task """
|
||||
|
||||
|
||||
|
||||
import logging
|
||||
from datetime import datetime
|
||||
from functools import wraps
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
|
||||
|
||||
import copy
|
||||
import shutil
|
||||
from datetime import timedelta
|
||||
|
||||
@@ -3,7 +3,6 @@ Tests core caching facilities.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from django.test import TestCase
|
||||
from opaque_keys.edx.locator import AssetLocator, CourseLocator
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""Tests for CRUD Operations"""
|
||||
|
||||
|
||||
|
||||
from xmodule import templates
|
||||
from xmodule.capa_module import ProblemBlock
|
||||
from xmodule.course_module import CourseDescriptor
|
||||
|
||||
@@ -3,7 +3,6 @@ Test the ability to export courses to xml from studio
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import copy
|
||||
import os
|
||||
import shutil
|
||||
|
||||
@@ -3,7 +3,6 @@ Integration tests for importing courses containing pure XBlocks.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from django.conf import settings
|
||||
from xblock.core import XBlock
|
||||
from xblock.fields import String
|
||||
|
||||
@@ -3,7 +3,6 @@ Tests for the edx_proctoring integration into Studio
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from datetime import datetime, timedelta
|
||||
|
||||
import ddt
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""Tests for verifying availability of resources for locking"""
|
||||
|
||||
|
||||
|
||||
import ddt
|
||||
import six
|
||||
from mock import Mock, patch
|
||||
|
||||
@@ -4,7 +4,6 @@ Unit tests for video utils.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from datetime import datetime
|
||||
from unittest import TestCase
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
""" Helper methods for determining user access permissions in Studio """
|
||||
|
||||
|
||||
|
||||
from student import auth
|
||||
from student.roles import CourseInstructorRole
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# pylint: disable=missing-docstring,unused-argument
|
||||
|
||||
|
||||
|
||||
import functools
|
||||
|
||||
from django.http import HttpResponse, HttpResponseNotFound, HttpResponseServerError
|
||||
|
||||
@@ -4,7 +4,6 @@ the giturl attribute is set.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import logging
|
||||
|
||||
import six
|
||||
|
||||
@@ -3,7 +3,6 @@ Helper methods for Studio views.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from uuid import uuid4
|
||||
|
||||
import six
|
||||
|
||||
@@ -3,7 +3,6 @@ Unit tests for credit eligibility UI in Studio.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import mock
|
||||
import six
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ Unit tests for helpers.py.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import six
|
||||
from django.utils import http
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
""" Tests for tab functions (just primitive). """
|
||||
|
||||
|
||||
|
||||
import json
|
||||
|
||||
from contentstore.tests.utils import CourseTestCase
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
""" Test cases for the textbook index page. """
|
||||
|
||||
|
||||
|
||||
import json
|
||||
from unittest import TestCase
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""Tests for items views."""
|
||||
|
||||
|
||||
|
||||
import copy
|
||||
import json
|
||||
import tempfile
|
||||
|
||||
@@ -3,7 +3,6 @@ Unit tests for the unit page.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from contentstore.views.tests.utils import StudioPageTestCase
|
||||
from xmodule.modulestore.django import modulestore
|
||||
from xmodule.modulestore.tests.factories import ItemFactory
|
||||
|
||||
@@ -3,7 +3,6 @@ Utilities for view tests.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import json
|
||||
|
||||
from contentstore.tests.utils import CourseTestCase
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""Views for users"""
|
||||
|
||||
|
||||
|
||||
from django.contrib.auth.decorators import login_required
|
||||
from django.contrib.auth.models import User
|
||||
from django.core.exceptions import PermissionDenied
|
||||
|
||||
@@ -3,7 +3,6 @@ django admin page for the course creators table
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import logging
|
||||
from smtplib import SMTPException
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ Tests course_creators.admin.py.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import mock
|
||||
from django.contrib.admin.sites import AdminSite
|
||||
from django.contrib.auth.models import User
|
||||
|
||||
@@ -3,7 +3,6 @@ Tests course_creators.views.py.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import mock
|
||||
from django.contrib.auth.models import User
|
||||
from django.core.exceptions import PermissionDenied
|
||||
|
||||
@@ -3,7 +3,6 @@ Utilities for returning XModule JS (used by requirejs)
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from django.conf import settings
|
||||
from django.contrib.staticfiles.storage import staticfiles_storage
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ Django admin dashboard configuration for LMS XBlock infrastructure.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
from config_models.admin import ConfigurationModelAdmin, KeyedConfigurationModelAdmin
|
||||
from django.contrib import admin
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ Includes:
|
||||
"""
|
||||
|
||||
|
||||
|
||||
import six
|
||||
from config_models.models import ConfigurationModel
|
||||
from django.db.models import TextField
|
||||
|
||||
Reference in New Issue
Block a user