This commit is contained in:
Alexis Métaireau 2021-11-22 22:30:08 +01:00
parent 8c005af24a
commit a6bf81a707
2 changed files with 2 additions and 2 deletions

View file

@ -198,7 +198,7 @@ class ProjectForm(EditProjectForm):
submit = SubmitField(_("Create the project"))
def __init__(self, *args, **kwargs):
self.bypass_captcha = kwargs.get('bypass_captcha', False)
self.bypass_captcha = kwargs.get("bypass_captcha", False)
super().__init__(*args, **kwargs)
def save(self):

View file

@ -286,7 +286,7 @@ class CaptchaTestCase(IhatemoneyTestCase):
assert len(models.Project.query.all()) == 1
def test_api_project_creation_does_not_need_captcha(self):
self.client.get('/')
self.client.get("/")
resp = self.client.post(
"/api/projects",
data={