mirror of
https://github.com/QingdaoU/Spirit.git
synced 2024-12-29 07:51:56 +00:00
18 lines
335 B
Python
18 lines
335 B
Python
|
#-*- 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()
|