[pre-commit.ci lite] apply automatic fixes

This commit is contained in:
pre-commit-ci-lite[bot] 2025-05-22 18:30:50 +00:00 committed by GitHub
parent 08f2779039
commit e4bf79329a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,10 +1,9 @@
import pytest
import flask
def test_template_filter_no_parens(app):
"""Test that @app.template_filter works without parentheses."""
@app.template_filter
def double(x):
return x * 2
@ -16,6 +15,7 @@ def test_template_filter_no_parens(app):
def test_template_test_no_parens(app):
"""Test that @app.template_test works without parentheses."""
@app.template_test
def is_even(x):
return x % 2 == 0
@ -28,6 +28,7 @@ def test_template_test_no_parens(app):
def test_template_global_no_parens(app):
"""Test that @app.template_global works without parentheses."""
@app.template_global
def get_answer():
return 42