mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #35598 -- Added SearchInput widget.
This commit is contained in:
committed by
Sarah Boyce
parent
3f88089069
commit
30a60e8492
12
tests/forms_tests/widget_tests/test_searchinput.py
Normal file
12
tests/forms_tests/widget_tests/test_searchinput.py
Normal file
@@ -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">'
|
||||
)
|
||||
Reference in New Issue
Block a user