From ce2136aeca19077b3e6918507835b5353b106706 Mon Sep 17 00:00:00 2001 From: Glandos Date: Sun, 10 Oct 2021 22:12:19 +0200 Subject: [PATCH] formatting --- ihatemoney/forms.py | 5 ++++- ihatemoney/tests/budget_test.py | 3 --- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ihatemoney/forms.py b/ihatemoney/forms.py index 3b4f2773..ded728ad 100644 --- a/ihatemoney/forms.py +++ b/ihatemoney/forms.py @@ -224,7 +224,10 @@ class ProjectForm(EditProjectForm): @classmethod def enable_captcha(cls): - captchaField = StringField(_("Which is a real currency: Euro or Petro dollar?")) + captchaField = StringField( + _("Which is a real currency: Euro or Petro dollar?"), + validators=[DataRequired()], + ) setattr(cls, "captcha", captchaField) def validate_captcha(form, field): diff --git a/ihatemoney/tests/budget_test.py b/ihatemoney/tests/budget_test.py index 1ee3302a..1539ece7 100644 --- a/ihatemoney/tests/budget_test.py +++ b/ihatemoney/tests/budget_test.py @@ -17,8 +17,6 @@ from ihatemoney.tests.common.ihatemoney_testcase import IhatemoneyTestCase from ihatemoney.versioning import LoggingMode - - class BudgetTestCase(IhatemoneyTestCase): def test_notifications(self): """Test that the notifications are sent, and that email addresses @@ -312,7 +310,6 @@ class BudgetTestCase(IhatemoneyTestCase): # project removed self.assertEqual(len(models.Project.query.all()), 0) - def test_bill_placeholder(self): self.post_project("raclette") self.login("raclette")