Merge pull request 'Fixed tests' (#22) from feature/form_improvements into main
ci/woodpecker/push/build Pipeline was successful Szczegóły
ci/woodpecker/tag/build Pipeline was successful Szczegóły

Reviewed-on: #22
pull/23/head 0.4.3
mtyton 2023-11-12 09:30:30 +00:00
commit 345dbe3f46
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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")