mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-06 05:01:48 +02:00
Flake8
This commit is contained in:
parent
832c0653ac
commit
01f41b37cd
2 changed files with 4 additions and 5 deletions
|
@ -3,13 +3,12 @@ from re import match
|
||||||
from types import SimpleNamespace
|
from types import SimpleNamespace
|
||||||
|
|
||||||
import email_validator
|
import email_validator
|
||||||
from flask import current_app, request
|
from flask import request
|
||||||
from flask_babel import lazy_gettext as _
|
from flask_babel import lazy_gettext as _
|
||||||
from flask_wtf.file import FileAllowed, FileField, FileRequired
|
from flask_wtf.file import FileAllowed, FileField, FileRequired
|
||||||
from flask_wtf.form import FlaskForm
|
from flask_wtf.form import FlaskForm
|
||||||
from markupsafe import Markup
|
from markupsafe import Markup
|
||||||
from werkzeug.security import check_password_hash, generate_password_hash
|
from werkzeug.security import check_password_hash, generate_password_hash
|
||||||
from wtforms.fields import Field
|
|
||||||
from wtforms.fields.core import Label, SelectField, SelectMultipleField
|
from wtforms.fields.core import Label, SelectField, SelectMultipleField
|
||||||
from wtforms.fields.html5 import DateField, DecimalField, URLField
|
from wtforms.fields.html5 import DateField, DecimalField, URLField
|
||||||
from wtforms.fields.simple import BooleanField, PasswordField, StringField, SubmitField
|
from wtforms.fields.simple import BooleanField, PasswordField, StringField, SubmitField
|
||||||
|
|
|
@ -247,7 +247,7 @@ class CaptchaTestCase(IhatemoneyTestCase):
|
||||||
|
|
||||||
def test_project_creation_with_captcha(self):
|
def test_project_creation_with_captcha(self):
|
||||||
with self.app.test_client() as c:
|
with self.app.test_client() as c:
|
||||||
res = c.post(
|
c.post(
|
||||||
"/create",
|
"/create",
|
||||||
data={
|
data={
|
||||||
"name": "raclette party",
|
"name": "raclette party",
|
||||||
|
@ -259,7 +259,7 @@ class CaptchaTestCase(IhatemoneyTestCase):
|
||||||
)
|
)
|
||||||
assert len(models.Project.query.all()) == 0
|
assert len(models.Project.query.all()) == 0
|
||||||
|
|
||||||
res = c.post(
|
c.post(
|
||||||
"/create",
|
"/create",
|
||||||
data={
|
data={
|
||||||
"name": "raclette party",
|
"name": "raclette party",
|
||||||
|
@ -272,7 +272,7 @@ class CaptchaTestCase(IhatemoneyTestCase):
|
||||||
)
|
)
|
||||||
assert len(models.Project.query.all()) == 0
|
assert len(models.Project.query.all()) == 0
|
||||||
|
|
||||||
res = c.post(
|
c.post(
|
||||||
"/create",
|
"/create",
|
||||||
data={
|
data={
|
||||||
"name": "raclette party",
|
"name": "raclette party",
|
||||||
|
|
Loading…
Reference in a new issue