Merge pull request 'Fixed tests' (#22) from feature/form_improvements into main
Reviewed-on: #22pull/23/head 0.4.3
commit
345dbe3f46
|
@ -104,7 +104,7 @@ class CustomEmailFormTestCase(WagtailPageTests):
|
|||
def test_generate_html_form_from_model(self):
|
||||
html_form = self.form.get_form()
|
||||
self.assertIsInstance(html_form, DynamicForm)
|
||||
self.assertEqual(len(html_form.fields), 13)
|
||||
self.assertEqual(len(html_form.fields), 14)
|
||||
self.assertEqual(html_form.fields["name"].label, "Name")
|
||||
self.assertEqual(html_form.fields["name"].required, True)
|
||||
self.assertEqual(html_form.fields["name"].widget.attrs["class"], "form-control")
|
||||
|
|
Ładowanie…
Reference in New Issue