Spirit/run_tests.py

18 lines
335 B
Python
Raw Normal View History

2014-05-09 22:32:31 +00:00
#-*- coding: utf-8 -*-
import os
import sys
os.environ['DJANGO_SETTINGS_MODULE'] = 'example.settings_test_runner'
from django.test.runner import DiscoverRunner
def run_tests():
test_runner = DiscoverRunner()
failures = test_runner.run_tests(["spirit", ])
sys.exit(failures)
if __name__ == "__main__":
run_tests()