Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 1260892fe9
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (23 sloc) 0.896 kB
#!/usr/bin/env python
import logging
import os
import sys
from os.path import dirname, abspath
from optparse import OptionParser
logging.getLogger('email-manager').addHandler(logging.StreamHandler())
sys.path.insert(0, dirname(abspath(__file__)))
from django.conf import settings
if not settings.configured:
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
from django_nose import NoseTestSuiteRunner
def runtests(*test_args, **kwargs):
kwargs.setdefault('interactive', False)
test_runner = NoseTestSuiteRunner(**kwargs)
failures = test_runner.run_tests(test_args)
sys.exit(failures)
if __name__ == '__main__':
parser = OptionParser()
parser.add_option('--verbosity', dest='verbosity', action='store', default=1, type=int)
parser.add_options(NoseTestSuiteRunner.options)
(options, args) = parser.parse_args()
runtests(*args, **options.__dict__)
Jump to Line
Something went wrong with that request. Please try again.