@manager.arg('where', 'w', help='test path', default=None)
@manager.arg(
    'stop', 'x', help='Stop after first error', type=bool, default=False)
@manager.arg('tox', 't', help='Run tox tests')
@manager.command
def test(where=None, stop=False, tox=False):
    """Run nose, tox, and script tests"""
    opts = '-xv' if stop else '-v'
    opts += 'w %s' % where if where else ''

    try:
        if tox:
            check_call('tox')
        else:
            check_call((opts % 'nosetests %s').split(' '))
            check_call(['python', p.join(BASEDIR, 'tests', 'test.py')])
    except CalledProcessError as e:
        exit(e.returncode)
dataset/ETHPy150Open reubano/pygogo/manage.py/test/swapped operands of `%`