formatting

This commit is contained in:
Glandos 2021-10-10 22:12:19 +02:00
parent 0fff98eea0
commit ce2136aeca
2 changed files with 4 additions and 4 deletions

View file

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

View file

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