Ejemplo n.º 1
0
    def handle(self, *test_labels, **options):
        # HACK: ensure Django configuratio is read in
        configure(**getattr(settings, 'MULE_CONFIG', {}))

        settings.TEST = True
        settings.DEBUG = False

        if 'south' in settings.INSTALLED_APPS:
            patch_for_test_db_setup()

        test_runner = DjangoTestSuiteRunner(**options)
        result = test_runner.run_tests(test_labels)

        if result:
            sys.exit(bool(result))
Ejemplo n.º 2
0
Archivo: mule.py Proyecto: disqus/mule
    def handle(self, *test_labels, **options):
        # HACK: ensure Django configuratio is read in
        configure(**getattr(settings, 'MULE_CONFIG', {}))
        
        settings.TEST = True
        settings.DEBUG = False

        if 'south' in settings.INSTALLED_APPS:
            patch_for_test_db_setup()

        test_runner = DjangoTestSuiteRunner(**options)
        result = test_runner.run_tests(test_labels)

        if result:
            sys.exit(bool(result))
Ejemplo n.º 3
0
from __future__ import absolute_import

from django.conf import settings
from mule.tasks import *
from mule.utils.conf import configure

# HACK: ensure Django configuratio is read in
configure(**getattr(settings, 'MULE_CONFIG', {}))