Permalink
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (17 sloc) 579 Bytes
import os
import sys
os.environ['DJANGO_SETTINGS_MODULE'] = 'django_summernote.test_settings'
test_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, test_dir)
from django.test.utils import get_runner
from django.conf import settings
import django
if django.VERSION >= (1, 7):
django.setup()
def runtests():
TestRunner = get_runner(settings)
test_runner = TestRunner(verbosity=1, interactive=True)
failures = test_runner.run_tests(['django_summernote'])
sys.exit(bool(failures))
if __name__ == '__main__':
runtests()