forked from orbit-oss/flask
use ruff linter and formatter
This commit is contained in:
parent
6edfd78c9f
commit
54ff9b2972
26 changed files with 99 additions and 128 deletions
|
|
@ -98,7 +98,7 @@ def test_request_exception_signal():
|
|||
|
||||
@app.route("/")
|
||||
def index():
|
||||
1 // 0
|
||||
raise ZeroDivisionError
|
||||
|
||||
def record(sender, exception):
|
||||
recorded.append(exception)
|
||||
|
|
@ -169,7 +169,7 @@ def test_appcontext_tearing_down_signal(app, client):
|
|||
|
||||
@app.route("/")
|
||||
def index():
|
||||
1 // 0
|
||||
raise ZeroDivisionError
|
||||
|
||||
flask.appcontext_tearing_down.connect(record_teardown, app)
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue