diff options
| author | Jeremy Thompson <jeremythompson.918@gmail.com> | 2024-07-17 16:50:01 +0100 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-07-31 13:11:45 +0200 |
| commit | 30a60e84923c18f3b2c725f7a31e521a833b8057 (patch) | |
| tree | 80224aef71d105ed92a6517ce82da70939cdf59e /tests/forms_tests | |
| parent | 3f880890699d4412cf23b59dba425111f62afb3a (diff) | |
Fixed #35598 -- Added SearchInput widget.
Diffstat (limited to 'tests/forms_tests')
| -rw-r--r-- | tests/forms_tests/widget_tests/test_searchinput.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/forms_tests/widget_tests/test_searchinput.py b/tests/forms_tests/widget_tests/test_searchinput.py new file mode 100644 index 0000000000..b11ffaaa82 --- /dev/null +++ b/tests/forms_tests/widget_tests/test_searchinput.py @@ -0,0 +1,12 @@ +from django.forms import SearchInput + +from .base import WidgetTest + + +class SearchInputTest(WidgetTest): + widget = SearchInput() + + def test_render(self): + self.check_html( + self.widget, "search", "", html='<input type="search" name="search">' + ) |
