Skip to content

Commit

Permalink
Merge pull request #3530 from valleygtc/docs-fix
Browse files Browse the repository at this point in the history
docs: testing.rst function def missing colon
  • Loading branch information
davidism authored Apr 2, 2020
2 parents bcf0a95 + ceed993 commit ac9589c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand All @@ -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():
Expand Down

0 comments on commit ac9589c

Please sign in to comment.