Source code for intranet.test.test_suite

import os
import sys

import django
from django.conf import settings
from django.test.utils import get_runner


[docs]def run_tests(): """Wrapper for ./setup.py test.""" os.environ.setdefault("DJANGO_SETTINGS_MODULE", "intranet.settings") django.setup() test_runner = get_runner(settings)() failures = test_runner.run_tests([]) sys.exit(failures)