Run 2to3 -f future . -w
This will remove imports from __future__ that are no longer needed. https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
Test instructor.access
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import pytest
|
||||
from six.moves import range
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"""
|
||||
Unit tests for instructor.api methods.
|
||||
"""
|
||||
from __future__ import absolute_import, print_function
|
||||
|
||||
|
||||
import datetime
|
||||
import functools
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
Unit tests for the localization of emails sent by instructor.api methods.
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
from django.core import mail
|
||||
from django.test.utils import override_settings
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
"""Tests for the certificates panel of the instructor dash. """
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import contextlib
|
||||
import io
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
Unit tests for Ecommerce feature flag in new instructor dashboard.
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import datetime
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ non-Mongo backed courses, regardless of email feature flag, and
|
||||
that the view is conditionally available when Course Auth is turned on.
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
from django.urls import reverse
|
||||
from opaque_keys.edx.keys import CourseKey
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"""
|
||||
Unit tests for instructor.enrollment methods.
|
||||
"""
|
||||
from __future__ import absolute_import, print_function
|
||||
|
||||
|
||||
import json
|
||||
from abc import ABCMeta
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
Exercises tests on the base_store_provider file
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
from django.test import TestCase
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
Unit tests for Edx Proctoring feature flag in new instructor dashboard.
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import ddt
|
||||
from django.apps import apps
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"""
|
||||
Test for the registration code status information.
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import json
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
Tests for the InstructorService
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import json
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
Tests of the instructor dashboard spoc gradebook
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
from django.urls import reverse
|
||||
from six import text_type
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"""
|
||||
Tests for views/tools.py.
|
||||
"""
|
||||
from __future__ import absolute_import, unicode_literals
|
||||
|
||||
|
||||
import datetime
|
||||
import json
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"""
|
||||
Utilities for instructor unit tests
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import datetime
|
||||
import json
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"""
|
||||
Unit tests for instructor_dashboard.py.
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import datetime
|
||||
|
||||
|
||||
Reference in New Issue
Block a user