File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
import re
2
2
import sys
3
3
from decimal import Decimal
4
- from enum import Enum , IntEnum , IntFlag , StrEnum
4
+ from enum import Enum , IntEnum , IntFlag
5
5
6
6
import pytest
7
7
@@ -384,7 +384,7 @@ class MyIntEnum(IntEnum):
384
384
385
385
def test_enum_str_validation_should_succeed_for_decimal_with_strict_disabled ():
386
386
# GIVEN
387
- class MyEnum (StrEnum ):
387
+ class MyEnum (Enum ):
388
388
VALUE = '1'
389
389
390
390
# WHEN
@@ -401,7 +401,7 @@ class MyEnum(StrEnum):
401
401
402
402
def test_enum_str_validation_should_fail_for_decimal_with_strict_enabled ():
403
403
# GIVEN
404
- class MyEnum (StrEnum ):
404
+ class MyEnum (Enum ):
405
405
VALUE = '1'
406
406
407
407
# WHEN
@@ -422,7 +422,7 @@ def test_enum_int_validation_should_fail_for_incorrect_decimal_value():
422
422
class MyEnum (Enum ):
423
423
VALUE = 1
424
424
425
- class MyStrEnum (StrEnum ):
425
+ class MyStrEnum (Enum ):
426
426
VALUE = '2'
427
427
428
428
# WHEN
You can’t perform that action at this time.
0 commit comments