Example #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))
Example #2
0
File: mule.py Project: 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))
Example #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', {}))