diff --git a/experimenter/experimenter/nimbus_ui_new/tests/test_forms.py b/experimenter/experimenter/nimbus_ui_new/tests/test_forms.py index fbcf93b504..77c92a9a73 100644 --- a/experimenter/experimenter/nimbus_ui_new/tests/test_forms.py +++ b/experimenter/experimenter/nimbus_ui_new/tests/test_forms.py @@ -383,6 +383,7 @@ def test_name_field_is_required(self): documentation_link = NimbusDocumentationLinkFactory.create() form_data = { + "name": "", "hypothesis": "new hypothesis", "risk_brand": True, "risk_message": True, @@ -402,6 +403,7 @@ def test_name_field_is_required(self): form = OverviewForm(data=form_data) self.assertFalse(form.is_valid()) + self.assertIn("name", form.errors) class TestDocumentationLinkCreateForm(RequestFormTestCase):