[pre-commit.ci lite] apply automatic fixes
This commit is contained in:
parent
08f2779039
commit
e4bf79329a
1 changed files with 3 additions and 2 deletions
|
|
@ -1,10 +1,9 @@
|
||||||
import pytest
|
|
||||||
|
|
||||||
import flask
|
import flask
|
||||||
|
|
||||||
|
|
||||||
def test_template_filter_no_parens(app):
|
def test_template_filter_no_parens(app):
|
||||||
"""Test that @app.template_filter works without parentheses."""
|
"""Test that @app.template_filter works without parentheses."""
|
||||||
|
|
||||||
@app.template_filter
|
@app.template_filter
|
||||||
def double(x):
|
def double(x):
|
||||||
return x * 2
|
return x * 2
|
||||||
|
|
@ -16,6 +15,7 @@ def test_template_filter_no_parens(app):
|
||||||
|
|
||||||
def test_template_test_no_parens(app):
|
def test_template_test_no_parens(app):
|
||||||
"""Test that @app.template_test works without parentheses."""
|
"""Test that @app.template_test works without parentheses."""
|
||||||
|
|
||||||
@app.template_test
|
@app.template_test
|
||||||
def is_even(x):
|
def is_even(x):
|
||||||
return x % 2 == 0
|
return x % 2 == 0
|
||||||
|
|
@ -28,6 +28,7 @@ def test_template_test_no_parens(app):
|
||||||
|
|
||||||
def test_template_global_no_parens(app):
|
def test_template_global_no_parens(app):
|
||||||
"""Test that @app.template_global works without parentheses."""
|
"""Test that @app.template_global works without parentheses."""
|
||||||
|
|
||||||
@app.template_global
|
@app.template_global
|
||||||
def get_answer():
|
def get_answer():
|
||||||
return 42
|
return 42
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue