mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-16 22:40:24 +00:00
19 lines
442 B
Python
19 lines
442 B
Python
#!/usr/bin/env python
|
|
|
|
"""Borrowed from Carl Meyer's django-adminfiles."""
|
|
|
|
import os, sys
|
|
|
|
parent = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
sys.path.insert(0, parent)
|
|
|
|
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.test_settings'
|
|
|
|
from django.test.simple import run_tests
|
|
|
|
def runtests():
|
|
failures = run_tests(['tests'], verbosity=1, interactive=True)
|
|
sys.exit(failures)
|
|
|
|
if __name__ == '__main__':
|
|
runtests()
|