@task
def pytest(ctx, args='', options=''):
 args = (args or ctx.pytest.args)
 options = (options or ctx.pytest.options)
 ctx.run('pytest {options} {args}'.format(options=options, args=args))

@ task def pytest ( ctx , args = '' , options = '' ) : args = ( args or ctx . pytest . args ) options = ( options or ctx . pytest . options ) ctx . run ( 'pytest {options} {args}' . format ( options = options , args = args ) )
run unit tests .