Пример #1
0
 def test_select_renderer(self):
     field = Field("foo", choices=[("foo", "Foo")])
     renderer = find_renderer(field)
     assert isinstance(renderer, Select)
Пример #2
0
 def test_hidden_renderer(self):
     field = Field("foo", hidden=True)
     renderer = find_renderer(field)
     assert isinstance(renderer, HiddenInput)
Пример #3
0
 def test_input_renderer(self):
     field = Field("foo")
     renderer = find_renderer(field)
     assert isinstance(renderer, TextInput)