address flake8 issues

This commit is contained in:
Jon S. Stumpf 2019-05-31 14:53:26 -04:00 committed by David Lord
parent 549fed29ea
commit b46f5942a5
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
23 changed files with 86 additions and 89 deletions

View file

@ -149,7 +149,7 @@ def test_default_error_handler():
return "bp-default"
@bp.errorhandler(Forbidden)
def bp_exception_handler(e):
def bp_forbidden_handler(e):
assert isinstance(e, Forbidden)
return "bp-forbidden"
@ -164,13 +164,13 @@ def test_default_error_handler():
app = flask.Flask(__name__)
@app.errorhandler(HTTPException)
def catchall_errorhandler(e):
def catchall_exception_handler(e):
assert isinstance(e, HTTPException)
assert isinstance(e, NotFound)
return "default"
@app.errorhandler(Forbidden)
def catchall_errorhandler(e):
def catchall_forbidden_handler(e):
assert isinstance(e, Forbidden)
return "forbidden"