Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 25 lines (17 sloc) 572 Bytes
#!/usr/bin/env python
import os, sys
def runtests(*test_args):
if not test_args:
test_args = ['tests']
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.test_settings'
import django
if hasattr(django, 'setup'):
django.setup()
parent = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, parent)
from django.test.runner import DiscoverRunner as Runner
failures = Runner(
verbosity=1, interactive=True, failfast=False).run_tests(test_args)
sys.exit(failures)
if __name__ == '__main__':
runtests()