Merge branch '2.1.x'

This commit is contained in:
David Lord 2022-04-08 11:06:32 -07:00
commit a03719b010
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
3 changed files with 5 additions and 5 deletions

View file

@ -1,5 +1,5 @@
ci:
autoupdate_branch: "2.0.x"
autoupdate_branch: "2.1.x"
autoupdate_schedule: monthly
repos:
- repo: https://github.com/asottile/pyupgrade
@ -27,7 +27,7 @@ repos:
- flake8-bugbear
- flake8-implicit-str-concat
- repo: https://github.com/peterdemin/pip-compile-multi
rev: v2.4.4
rev: v2.4.5
hooks:
- id: pip-compile-multi-verify
- repo: https://github.com/pre-commit/pre-commit-hooks

View file

@ -489,7 +489,7 @@ This is a simple example:
@app.errorhandler(InvalidAPIUsage)
def invalid_api_usage(e):
return jsonify(e.to_dict())
return jsonify(e.to_dict()), e.status_code
# an API app route for getting user information
# a correct request might be /api/user?user_id=420

View file

@ -265,10 +265,10 @@ command from the command line.
click.echo(f"Hello, {name}!")
def test_hello_command(runner):
result = runner.invoke(["hello"])
result = runner.invoke(args="hello")
assert "World" in result.output
result = runner.invoke(["hello", "--name", "Flask"])
result = runner.invoke(args=["hello", "--name", "Flask"])
assert "Flask" in result.output