Skip to content
Myr

Merge branch '2.1.x'

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parents f59574f, 5334e28 · Browse files · 3 files+5 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+5 added−5 removed

  • other:+5 added−5 removed

3 files+5 added−5 removed

modified:docs/errorhandling.rst+1 added-1 removed
487 unmodified lines
488 return rv489490 @app.errorhandler(InvalidAPIUsage)491 def invalid_api_usage(e):492 return jsonify(e.to_dict())492 return jsonify(e.to_dict()), e.status_code493494 # an API app route for getting user information495 # a correct request might be /api/user?user_id=420496 @app.route("/api/user")
28 unmodified lines
modified:docs/testing.rst+2 added-2 removed
263 unmodified lines
264 def hello_command(name):265 click.echo(f"Hello, {name}!")266267 def test_hello_command(runner):268 result = runner.invoke(["hello"])268 result = runner.invoke(args="hello")269 assert "World" in result.output270271 result = runner.invoke(["hello", "--name", "Flask"])271 result = runner.invoke(args=["hello", "--name", "Flask"])272 assert "Flask" in result.output273274275Tests that depend on an Active Context
44 unmodified lines
modified:.pre-commit-config.yaml+2 added-2 removed