mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 20:51:49 +02:00
Black
This commit is contained in:
parent
8c005af24a
commit
a6bf81a707
2 changed files with 2 additions and 2 deletions
|
@ -198,7 +198,7 @@ class ProjectForm(EditProjectForm):
|
||||||
submit = SubmitField(_("Create the project"))
|
submit = SubmitField(_("Create the project"))
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
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)
|
super().__init__(*args, **kwargs)
|
||||||
|
|
||||||
def save(self):
|
def save(self):
|
||||||
|
|
|
@ -286,7 +286,7 @@ class CaptchaTestCase(IhatemoneyTestCase):
|
||||||
assert len(models.Project.query.all()) == 1
|
assert len(models.Project.query.all()) == 1
|
||||||
|
|
||||||
def test_api_project_creation_does_not_need_captcha(self):
|
def test_api_project_creation_does_not_need_captcha(self):
|
||||||
self.client.get('/')
|
self.client.get("/")
|
||||||
resp = self.client.post(
|
resp = self.client.post(
|
||||||
"/api/projects",
|
"/api/projects",
|
||||||
data={
|
data={
|
||||||
|
|
Loading…
Reference in a new issue