forked from orbit-oss/flask
docs: testing.rst function def missing colon
This commit is contained in:
parent
fd3fca2aa0
commit
ceed993d63
1 changed files with 2 additions and 2 deletions
|
|
@ -420,7 +420,7 @@ command line. ::
|
||||||
|
|
||||||
@app.cli.command('hello')
|
@app.cli.command('hello')
|
||||||
@click.option('--name', default='World')
|
@click.option('--name', default='World')
|
||||||
def hello_command(name)
|
def hello_command(name):
|
||||||
click.echo(f'Hello, {name}!')
|
click.echo(f'Hello, {name}!')
|
||||||
|
|
||||||
def test_hello():
|
def test_hello():
|
||||||
|
|
@ -447,7 +447,7 @@ This is useful for testing complex validation rules and custom types. ::
|
||||||
|
|
||||||
@app.cli.command('hello')
|
@app.cli.command('hello')
|
||||||
@click.option('--name', default='World', callback=upper)
|
@click.option('--name', default='World', callback=upper)
|
||||||
def hello_command(name)
|
def hello_command(name):
|
||||||
click.echo(f'Hello, {name}!')
|
click.echo(f'Hello, {name}!')
|
||||||
|
|
||||||
def test_hello_params():
|
def test_hello_params():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue