File: runtests.py

package info (click to toggle)
python-django-voting 0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 224 kB
  • sloc: python: 538; makefile: 10
file content (9 lines) | stat: -rw-r--r-- 247 bytes parent folder | download
1
2
3
4
5
6
7
8
9
import os, sys
os.environ['DJANGO_SETTINGS_MODULE'] = 'voting.tests.settings'

from django.test.simple import DjangoTestSuiteRunner

runner = DjangoTestSuiteRunner(verbosity=9)
failures = runner.run_tests(None)
if failures:
    sys.exit(failures)