diff options
| author | arjunomray <arjunomray@gmail.com> | 2024-07-26 07:39:19 +0200 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-08-02 09:51:49 +0200 |
| commit | 946c3cf7342cc40c2d8e3d865c96a4ec990f76f4 (patch) | |
| tree | f1fab0e3223cf1c4c286f784b3365f0b0bc7c70b /tests/forms_tests | |
| parent | 54e8b4e5825eadf94ad715459f3aa60df389c8d4 (diff) | |
Fixed #35599 -- Added ColorInput widget.
Diffstat (limited to 'tests/forms_tests')
| -rw-r--r-- | tests/forms_tests/widget_tests/test_colorinput.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/forms_tests/widget_tests/test_colorinput.py b/tests/forms_tests/widget_tests/test_colorinput.py new file mode 100644 index 0000000000..f316534bfa --- /dev/null +++ b/tests/forms_tests/widget_tests/test_colorinput.py @@ -0,0 +1,15 @@ +from django.forms import ColorInput + +from .base import WidgetTest + + +class ColorInputTest(WidgetTest): + widget = ColorInput() + + def test_render(self): + self.check_html( + self.widget, + "color", + "", + html="<input type='color' name='color'>", + ) |
