chapeau/runtests.py

16 wiersze
384 B
Python
Czysty Zwykły widok Historia

2018-08-07 15:28:52 +00:00
#!/usr/bin/env python
import os
import sys
import django
from django.conf import settings
from django.test.utils import get_runner
if __name__ == "__main__":
2018-08-16 17:51:24 +00:00
os.environ['DJANGO_SETTINGS_MODULE'] = 'test_settings'
2018-08-07 15:28:52 +00:00
django.setup()
TestRunner = get_runner(settings)
test_runner = TestRunner()
failures = test_runner.run_tests(["tests"])
sys.exit(bool(failures))