docs: testing.rst function def missing colon

This commit is contained in:
gutianci 2020-03-05 18:31:21 +08:00
parent fd3fca2aa0
commit ceed993d63

View file

@ -420,7 +420,7 @@ command line. ::
@app.cli.command('hello')
@click.option('--name', default='World')
def hello_command(name)
def hello_command(name):
click.echo(f'Hello, {name}!')
def test_hello():
@ -447,7 +447,7 @@ This is useful for testing complex validation rules and custom types. ::
@app.cli.command('hello')
@click.option('--name', default='World', callback=upper)
def hello_command(name)
def hello_command(name):
click.echo(f'Hello, {name}!')
def test_hello_params():