* run python modernize

* run isort
This commit is contained in:
Stu Young
2019-05-15 15:58:20 -04:00
committed by Michael Youngstrom
parent ca00ccfb0f
commit 43d5000443
10 changed files with 18 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
Management command which sets or gets the certificate whitelist for a given
user/course
"""
from __future__ import print_function
from __future__ import absolute_import, print_function
from django.contrib.auth.models import User
from django.core.management.base import BaseCommand, CommandError

View File

@@ -9,6 +9,8 @@ Example usage:
$ ./manage.py lms create_fake_cert test_user edX/DemoX/Demo_Course --mode honor --grade 0.89
"""
from __future__ import absolute_import
import logging
from django.contrib.auth.models import User

View File

@@ -1,6 +1,8 @@
"""
Management command which fixes ungraded certificates for students
"""
from __future__ import absolute_import
import logging
from django.core.management.base import BaseCommand

View File

@@ -1,7 +1,7 @@
"""
Generate a report of certificate statuses
"""
from __future__ import print_function
from __future__ import absolute_import, print_function
from django.contrib.auth.models import User
from django.core.management.base import BaseCommand, CommandError

View File

@@ -1,4 +1,6 @@
"""Django management command to force certificate regeneration for one user"""
from __future__ import absolute_import
import copy
import logging

View File

@@ -16,6 +16,8 @@ Example usage:
$ ./manage.py lms resubmit_error_certificates -c edX/DemoX/Fall_2015 -c edX/DemoX/Spring_2016
"""
from __future__ import absolute_import
import logging
from django.core.management.base import BaseCommand, CommandError

View File

@@ -1,8 +1,9 @@
"""
Extremely basic tests for the cert_whitelist command
"""
import pytest
from __future__ import absolute_import
import pytest
from django.core.management import call_command

View File

@@ -1,8 +1,9 @@
"""
Extremely basic tests for the fix_ungraded_certs command
"""
import pytest
from __future__ import absolute_import
import pytest
from django.core.management import call_command

View File

@@ -1,8 +1,9 @@
"""
Extremely basic tests for the gen_cert_report command
"""
import pytest
from __future__ import absolute_import
import pytest
from django.core.management import call_command

View File

@@ -2,7 +2,8 @@
Management command to find all students that need certificates for
courses that have finished, and put their cert requests on the queue.
"""
from __future__ import print_function
from __future__ import absolute_import, print_function
import datetime
import logging