mirror of
https://github.com/jazzband/django-ddp.git
synced 2026-05-13 01:53:13 +00:00
17 lines
479 B
Python
17 lines
479 B
Python
# This file mainly exists to allow `python setup.py test` to work.
|
|
import os
|
|
import sys
|
|
|
|
import dddp
|
|
|
|
|
|
def run_tests():
|
|
os.environ['DJANGO_SETTINGS_MODULE'] = 'dddp.test.test_project.settings'
|
|
dddp.greenify()
|
|
import django
|
|
from django.test.utils import get_runner
|
|
from django.conf import settings
|
|
django.setup()
|
|
test_runner = get_runner(settings)()
|
|
failures = test_runner.run_tests(['dddp', 'dddp.test.django_todos'])
|
|
sys.exit(bool(failures))
|