[pre-commit.ci lite] apply automatic fixes
This commit is contained in:
parent
6ff24afee8
commit
c5d00407b3
2 changed files with 14 additions and 12 deletions
|
|
@ -32,7 +32,7 @@ from .scaffold import _endpoint_from_view_func
|
||||||
from .scaffold import find_package
|
from .scaffold import find_package
|
||||||
from .scaffold import Scaffold
|
from .scaffold import Scaffold
|
||||||
from .scaffold import setupmethod
|
from .scaffold import setupmethod
|
||||||
from functools import wraps
|
|
||||||
if t.TYPE_CHECKING: # pragma: no cover
|
if t.TYPE_CHECKING: # pragma: no cover
|
||||||
from werkzeug.wrappers import Response as BaseResponse
|
from werkzeug.wrappers import Response as BaseResponse
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
import pytest
|
from flask import Flask
|
||||||
from flask import Flask, render_template_string
|
from flask import render_template_string
|
||||||
|
|
||||||
|
|
||||||
def test_template_filter_without_parentheses():
|
def test_template_filter_without_parentheses():
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
@ -12,6 +13,7 @@ def test_template_filter_without_parentheses():
|
||||||
output = render_template_string("{{ 2 | double }}")
|
output = render_template_string("{{ 2 | double }}")
|
||||||
assert output == "4"
|
assert output == "4"
|
||||||
|
|
||||||
|
|
||||||
def test_template_filter_with_parentheses():
|
def test_template_filter_with_parentheses():
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue