@task(help={'args': 'Command line args for behave', 'format': 'Formatter to use'})
def behave_test(ctx, args='', format=''):
 format = (format or ctx.behave_test.format)
 options = (ctx.behave_test.options or '')
 args = (args or ctx.behave_test.args)
 behave = '{python} bin/behave'.format(python=sys.executable)
 ctx.run('{behave} -f {format} {options} {args}'.format(behave=behave, format=format, options=options, args=args), pty=USE_PTY)

@ task ( help = { 'args' : 'Command line args for behave' , 'format' : 'Formatter to use' } ) def behave_test ( ctx , args = '' , format = '' ) : format = ( format or ctx . behave_test . format ) options = ( ctx . behave_test . options or '' ) args = ( args or ctx . behave_test . args ) behave = '{python} bin/behave' . format ( python = sys . executable ) ctx . run ( '{behave} -f {format} {options} {args}' . format ( behave = behave , format = format , options = options , args = args ) , pty = USE_PTY )
run behave tests .