fix imports in tests

This commit is contained in:
Saadullah Aleem 2023-05-01 22:59:29 +05:00
parent 4b9bdb0f6c
commit 2d26752e7d

View File

@ -5,11 +5,13 @@ import re
import sys
import uuid
from decimal import ROUND_DOWN, ROUND_UP, Decimal
from enum import auto
from unittest.mock import patch
import pytest
import pytz
from django.core.exceptions import ValidationError as DjangoValidationError
from django.db.models import IntegerChoices
from django.http import QueryDict
from django.test import TestCase, override_settings
from django.utils.timezone import activate, deactivate, override
@ -1825,9 +1827,6 @@ class TestChoiceField(FieldValues):
assert exc_info.value.detail == ['"2" is not a valid choice.']
def test_enum_choices(self):
from enum import auto
from django.db.models import IntegerChoices
class ChoiceCase(IntegerChoices):
first = auto()
second = auto()