Skip to content

Commit e913cdc

Browse files
committed
fix test to work with enum-properties>=1.5
1 parent 8768b20 commit e913cdc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

django_enum/tests/tests.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2118,7 +2118,10 @@ class EmptyEqEnum(TextChoices, s('prop', case_fold=True)):
21182118
"empty_value set."
21192119
)
21202120

2121-
class EmptyEqEnum2(TextChoices, s('prop', case_fold=True)):
2121+
class EmptyEqEnum2(
2122+
TextChoices,
2123+
s('prop', case_fold=True, match_none=True)
2124+
):
21222125

21232126
A = 'A', [None, '', ()]
21242127
B = 'B', 'ok'

0 commit comments

Comments
 (0)