MCPcopy
hub / github.com/django/django / test_render_attrs

Method test_render_attrs

tests/postgres_tests/test_array.py:1518–1528  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1516 )
1517
1518 def test_render_attrs(self):
1519 self.check_html(
1520 SplitArrayWidget(forms.TextInput(), size=2),
1521 "array",
1522 ["val1", "val2"],
1523 attrs={"id": "foo"},
1524 html=("""
1525 <input id="foo_0" name="array_0" type="text" value="val1">
1526 <input id="foo_1" name="array_1" type="text" value="val2">
1527 """),
1528 )
1529
1530 def test_value_omitted_from_data(self):
1531 widget = SplitArrayWidget(forms.TextInput(), size=2)

Callers

nothing calls this directly

Calls 2

SplitArrayWidgetClass · 0.90
check_htmlMethod · 0.80

Tested by

no test coverage detected