diff --git a/tests/test_serializers.py b/tests/test_serializers.py index 108e3a673..6ec6a8083 100644 --- a/tests/test_serializers.py +++ b/tests/test_serializers.py @@ -4,9 +4,9 @@ from django.conf import settings from django.contrib.auth import get_user_model +from django.core import exceptions as django_exceptions from django.test import TestCase from rest_framework import exceptions as drf_exceptions -from django.core import exceptions as django_exceptions from rest_framework_simplejwt.exceptions import TokenError from rest_framework_simplejwt.serializers import ( @@ -268,7 +268,6 @@ def test_it_should_raise_error_for_deleted_users(self): self.assertIn("does not exist", str(e.exception)) - def test_it_should_raise_error_for_inactive_users(self): refresh = RefreshToken.for_user(self.user) self.user.is_active = False