Skip to content

Commit da8f6a5

Browse files
committed
boost coverage
1 parent 3f64caa commit da8f6a5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_forms.py

+10
Original file line numberDiff line numberDiff line change
@@ -701,3 +701,13 @@ def test_has_changed(self):
701701
initial={"small_pos_int": [self.SmallPosIntEnum.VAL1]},
702702
)
703703
self.assertTrue(form.has_changed())
704+
705+
706+
def test_flag_mixin_value_passthrough():
707+
"""
708+
This test is mostly for coverage - we may need to alter this behavior later,
709+
it catches the passthrough case for unrecognized Flag field values during rendering.
710+
"""
711+
from django_enum.forms import FlagMixin
712+
713+
assert FlagMixin().format_value((1, 2, 3)) == (1, 2, 3)

0 commit comments

Comments
 (0)