

def run_tests(verbosity, interactive, failfast, test_labels):
    if (not test_labels):
        test_labels = ['tests']
    if (not hasattr(settings, 'TEST_RUNNER')):
        settings.TEST_RUNNER = 'django.test.runner.DiscoverRunner'
    TestRunner = get_runner(settings)
    test_runner = TestRunner(verbosity=verbosity, interactive=interactive, failfast=failfast)
    failures = test_runner.run_tests(test_labels)
    if failures:
        sys.exit(bool(failures))

dataset/ETHPy150Open nigma/django-easy-pdf/runtests.py run_tests/original