Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e83b4c3f2c
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (17 sloc) 0.518 kb
"""
Test support harness for doing setup.py test.
See http://ericholscher.com/blog/2009/jun/29/enable-setuppy-test-your-django-apps/.
"""
import sys
# Configure settings
from django.conf import settings
settings.configure(
DATABASE_ENGINE = 'sqlite3',
INSTALLED_APPS = ['googlecharts'],
)
# setup.py test runner
from django.test.utils import get_runner
def runtests():
test_runner = get_runner(settings)
failures = test_runner(['googlecharts'], verbosity=1, interactive=True)
sys.exit(failures)
Jump to Line
Something went wrong with that request. Please try again.