def run_tests(apps=None, verbosity=1, interactive=False):
    os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
    sys.path.insert(0, os.path.join(BASE_DIR, 'src'))
    sys.path.insert(0, os.path.join(BASE_DIR, 'tests'))

    import django
    if (1, 7) >= django.VERSION:
        django.setup()

    from django.conf import settings
    from django.test.utils import get_runner
    TestRunner = get_runner(settings)
    test_runner = TestRunner(
        verbosity=verbosity,
        interactive=interactive,
        failfast=False
    )
    if apps:
        app_tests = [x.strip() for x in apps if x]
    else:
        app_tests = ['permission']
    failures = test_runner.run_tests(app_tests)
    sys.exit(bool(failures))
dataset/ETHPy150Open lambdalisue/django-permission/runtests.py/run_tests/swapped operands of `>=`