def test_flaskgroup():
 def create_app(info):
  return Flask('flaskgroup')
 @click.group(cls=FlaskGroup, create_app=create_app)
 def cli(**params):
  pass
 @cli.command()
 def test():
  click.echo(current_app.name)
 runner = CliRunner()
 result = runner.invoke(cli, ['test'])
 assert (result.exit_code == 0)
 assert (result.output == 'flaskgroup\n')

def test_flaskgroup ( ) : def create_app ( info ) : return Flask ( 'flaskgroup' ) @ click . group ( cls = FlaskGroup , create_app = create_app ) def cli ( ** params ) : pass @ cli . command ( ) def test ( ) : click . echo ( current_app . name ) runner = CliRunner ( ) result = runner . invoke ( cli , [ 'test' ] ) assert ( result . exit_code == 0 ) assert ( result . output == 'flaskgroup\n' )
test flaskgroup .