mirror of
https://github.com/Hopiu/django-modeltranslation.git
synced 2026-05-19 10:01:09 +00:00
21 lines
547 B
Python
Executable file
21 lines
547 B
Python
Executable file
# -*- coding: utf-8 -*-
|
|
import os
|
|
import sys
|
|
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
|
|
#test_dir = os.path.join(
|
|
# os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'tests')
|
|
#sys.path.insert(0, test_dir)
|
|
|
|
from django.test.utils import get_runner
|
|
from django.conf import settings
|
|
|
|
|
|
def runtests():
|
|
TestRunner = get_runner(settings)
|
|
test_runner = TestRunner(verbosity=2, failfast=False)
|
|
failures = test_runner.run_tests(['modeltranslation'])
|
|
sys.exit(bool(failures))
|
|
|
|
|
|
if __name__ == '__main__':
|
|
runtests()
|