human
I wrote the below code

    @click.command()
    @with_appcontext
    def testcmd():
        click.echo(current_app.name)
    obj = ScriptInfo(create_app=(lambda info: Flask('testapp')))
    result = runner.invoke(testcmd, obj=obj)
    assert (result.exit_code == 0)
    assert (result.output == 'testapp\n')

What's a good function header?

Here's a good function header?
assistant
#Here's a good function header.

def test_with_appcontext(runner):