Merge pull request #3530 from valleygtc/docs-fix

docs: testing.rst function def missing colon
This commit is contained in:
David Lord 2020-04-02 11:55:01 -07:00 committed by GitHub
commit ac9589ca72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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():