From e4bf79329ae48c5dc2ffd727ef601dc80d9299f4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Thu, 22 May 2025 18:30:50 +0000 Subject: [PATCH] [pre-commit.ci lite] apply automatic fixes --- tests/test_decorator_no_parens.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_decorator_no_parens.py b/tests/test_decorator_no_parens.py index 9f8999f0..e03fb532 100644 --- a/tests/test_decorator_no_parens.py +++ b/tests/test_decorator_no_parens.py @@ -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