diff --git a/common/djangoapps/student/helpers.py b/common/djangoapps/student/helpers.py index 332c1ca162e2ce0b06ed8ee7720c41bf95e8768d..b7321c563d5341486ab5791aa03d9c1d181c4d92 100644 --- a/common/djangoapps/student/helpers.py +++ b/common/djangoapps/student/helpers.py @@ -21,7 +21,6 @@ from django.db import IntegrityError, transaction, ProgrammingError from django.urls import NoReverseMatch, reverse from django.utils.translation import ugettext as _ from pytz import UTC -from six import iteritems, text_type from common.djangoapps import third_party_auth from common.djangoapps.course_modes.models import CourseMode diff --git a/common/djangoapps/student/management/tests/test_change_eligibility_deadline.py b/common/djangoapps/student/management/tests/test_change_eligibility_deadline.py index f1391467c1645dc11f5c3a065bfa7e4b29fe6ade..5c7fea30f5442cf23ce41a3162dcc7574a0010aa 100644 --- a/common/djangoapps/student/management/tests/test_change_eligibility_deadline.py +++ b/common/djangoapps/student/management/tests/test_change_eligibility_deadline.py @@ -6,7 +6,6 @@ import pytest from django.core.management import call_command from opaque_keys import InvalidKeyError -from six import text_type from testfixtures import LogCapture from common.djangoapps.course_modes.tests.factories import CourseMode diff --git a/common/djangoapps/student/models.py b/common/djangoapps/student/models.py index 08d1e2cc2c9eda3bf1e3a6bdf8183313b0ed2056..9715c60a34ee4db13483b51f98853a7978a0549f 100644 --- a/common/djangoapps/student/models.py +++ b/common/djangoapps/student/models.py @@ -24,7 +24,6 @@ from importlib import import_module from urllib.parse import urlencode import warnings -import six from config_models.models import ConfigurationModel from django.apps import apps from django.conf import settings @@ -53,7 +52,6 @@ from opaque_keys.edx.django.models import CourseKeyField, LearningContextKeyFiel from opaque_keys.edx.keys import CourseKey from pytz import UTC, timezone from simple_history.models import HistoricalRecords -from six import text_type from slumber.exceptions import HttpClientError, HttpServerError from user_util import user_util diff --git a/common/djangoapps/student/roles.py b/common/djangoapps/student/roles.py index e936277562f161a6d1bd2044dcd407a3445c9f6b..052eb30862d61b0109775a6230582a1ec7d64b6c 100644 --- a/common/djangoapps/student/roles.py +++ b/common/djangoapps/student/roles.py @@ -8,7 +8,6 @@ import logging from abc import ABCMeta, abstractmethod from collections import defaultdict -import six from django.contrib.auth.models import User # lint-amnesty, pylint: disable=imported-auth-user from opaque_keys.edx.django.models import CourseKeyField diff --git a/common/djangoapps/student/tests/factories.py b/common/djangoapps/student/tests/factories.py index 5f404c1e96300893332d8490c4a0a5d149b20815..ecffdf63cd1d2936eb033de963a042b391a8d7be 100644 --- a/common/djangoapps/student/tests/factories.py +++ b/common/djangoapps/student/tests/factories.py @@ -5,7 +5,6 @@ from datetime import datetime from uuid import uuid4 import factory -import six from django.contrib.auth.models import AnonymousUser, Group, Permission from django.contrib.contenttypes.models import ContentType from factory.django import DjangoModelFactory diff --git a/common/djangoapps/student/tests/test_admin_views.py b/common/djangoapps/student/tests/test_admin_views.py index 4b5a351b788d63e0ca1cf9f68c0e51d8f5973439..c19af005186863848fb05646e1924a07c686b6f6 100644 --- a/common/djangoapps/student/tests/test_admin_views.py +++ b/common/djangoapps/student/tests/test_admin_views.py @@ -8,7 +8,6 @@ from unittest.mock import Mock import ddt import pytest -import six from django.contrib.admin.sites import AdminSite from django.contrib.auth.models import User # lint-amnesty, pylint: disable=imported-auth-user from django.forms import ValidationError diff --git a/common/djangoapps/student/tests/test_course_listing.py b/common/djangoapps/student/tests/test_course_listing.py index c061ed389983cb77672f910a46247b8aaed58272..4679f5e0538afc9761fa4b2edc58994774066ed3 100644 --- a/common/djangoapps/student/tests/test_course_listing.py +++ b/common/djangoapps/student/tests/test_course_listing.py @@ -7,7 +7,6 @@ by reversing group name formats. import unittest from unittest import mock -import six from django.conf import settings from django.test.client import Client from milestones.tests.utils import MilestonesTestCaseMixin diff --git a/common/djangoapps/student/tests/test_email.py b/common/djangoapps/student/tests/test_email.py index f11f35a1fb3be915f4c508968efd3e2046896db6..5c48dc8ee014c69e2847646fdde035c7bb6ad00d 100644 --- a/common/djangoapps/student/tests/test_email.py +++ b/common/djangoapps/student/tests/test_email.py @@ -15,7 +15,6 @@ from django.test.client import RequestFactory from django.urls import reverse from django.utils.html import escape from edx_toggles.toggles.testutils import override_waffle_flag -from six import text_type from common.djangoapps.edxmako.shortcuts import marketing_link from common.djangoapps.student.email_helpers import generate_proctoring_requirements_email_context diff --git a/common/djangoapps/student/tests/test_enrollment.py b/common/djangoapps/student/tests/test_enrollment.py index 483aa39f462b07885577e0227e5088efeb155187..0b34fd107defa11e2e89ee5240e7b96b0bd51b2c 100644 --- a/common/djangoapps/student/tests/test_enrollment.py +++ b/common/djangoapps/student/tests/test_enrollment.py @@ -8,7 +8,6 @@ from unittest.mock import patch import ddt import pytest -import six from django.conf import settings from django.urls import reverse from edx_toggles.toggles.testutils import override_waffle_flag diff --git a/common/djangoapps/student/tests/test_long_username_email.py b/common/djangoapps/student/tests/test_long_username_email.py index dbb5669a4db90142b82fb88b36451caa9e71a2d3..bee416100e90df4c0214444da4877d30573d0e3e 100644 --- a/common/djangoapps/student/tests/test_long_username_email.py +++ b/common/djangoapps/student/tests/test_long_username_email.py @@ -1,3 +1,4 @@ +""" Test case for longer user emails.""" import json from django.test import TestCase diff --git a/common/djangoapps/student/tests/test_views.py b/common/djangoapps/student/tests/test_views.py index fd79c1835ea33291cfe7b521268868ba242cdc57..59d91b20da08e43b95e08bae120cee88ea972af7 100644 --- a/common/djangoapps/student/tests/test_views.py +++ b/common/djangoapps/student/tests/test_views.py @@ -11,7 +11,6 @@ from datetime import timedelta # lint-amnesty, pylint: disable=unused-import from unittest.mock import patch import ddt -import six from completion.test_utils import CompletionWaffleTestMixin, submit_completions_for_testing from django.conf import settings from django.test import TestCase diff --git a/lms/djangoapps/instructor/tests/test_api.py b/lms/djangoapps/instructor/tests/test_api.py index cab84737048372c45fdbf1185fdd9427aaebe0de..9acf4e434062065677b0f29d552e01b4bdeaf029 100644 --- a/lms/djangoapps/instructor/tests/test_api.py +++ b/lms/djangoapps/instructor/tests/test_api.py @@ -23,7 +23,6 @@ from django.test import RequestFactory, TestCase from django.urls import reverse as django_reverse from django.utils.translation import ugettext as _ from edx_when.api import get_dates_for_course, get_overrides_for_user, set_date_for_block -from freezegun import freeze_time from opaque_keys.edx.keys import CourseKey from opaque_keys.edx.locator import UsageKey from pytz import UTC diff --git a/openedx/features/discounts/tests/test_utils.py b/openedx/features/discounts/tests/test_utils.py index 15a3b260054719c10bb15d2107b13c89567bb0c0..1ff305831d747fea2c3756b20e585af5333ec68f 100644 --- a/openedx/features/discounts/tests/test_utils.py +++ b/openedx/features/discounts/tests/test_utils.py @@ -4,7 +4,6 @@ Tests of the openedx.features.discounts.utils module. from unittest.mock import patch, Mock import ddt -import six from django.contrib.auth.models import AnonymousUser from django.test import TestCase from django.utils.translation import override as override_lang diff --git a/openedx/features/discounts/tests/test_views.py b/openedx/features/discounts/tests/test_views.py index 5a735375c313200d8255bd7a482d4feec4e66e55..a5ed4060cdd5b801a4f6d8b937d92d1317f6b94a 100644 --- a/openedx/features/discounts/tests/test_views.py +++ b/openedx/features/discounts/tests/test_views.py @@ -2,7 +2,6 @@ import jwt -import six from django.test.client import Client from django.urls import reverse