diff --git a/edx_name_affirmation/handlers.py b/edx_name_affirmation/handlers.py index 1512c6c..75bc7da 100644 --- a/edx_name_affirmation/handlers.py +++ b/edx_name_affirmation/handlers.py @@ -4,17 +4,17 @@ import logging -from django.contrib.auth import get_user_model -from django.db.models.signals import post_save -from django.dispatch.dispatcher import receiver - from openedx_events.learning.signals import ( IDV_ATTEMPT_APPROVED, IDV_ATTEMPT_CREATED, IDV_ATTEMPT_DENIED, - IDV_ATTEMPT_PENDING, + IDV_ATTEMPT_PENDING ) +from django.contrib.auth import get_user_model +from django.db.models.signals import post_save +from django.dispatch.dispatcher import receiver + from edx_name_affirmation.models import VerifiedName from edx_name_affirmation.signals import VERIFIED_NAME_APPROVED from edx_name_affirmation.statuses import VerifiedNameStatus diff --git a/edx_name_affirmation/tests/test_handlers.py b/edx_name_affirmation/tests/test_handlers.py index 678d409..3bb07f8 100644 --- a/edx_name_affirmation/tests/test_handlers.py +++ b/edx_name_affirmation/tests/test_handlers.py @@ -4,18 +4,17 @@ import ddt from mock import MagicMock, patch - -from django.contrib.auth import get_user_model -from django.test import TestCase - from openedx_events.learning.data import UserData, UserPersonalData, VerificationAttemptData from openedx_events.learning.signals import ( IDV_ATTEMPT_APPROVED, IDV_ATTEMPT_CREATED, IDV_ATTEMPT_DENIED, - IDV_ATTEMPT_PENDING, + IDV_ATTEMPT_PENDING ) +from django.contrib.auth import get_user_model +from django.test import TestCase + from edx_name_affirmation.handlers import ( handle_idv_event, platform_verification_delete_handler,