Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 431 Bytes
#This file mainly exists to allow python test to work.
import os, sys
os.environ['DJANGO_SETTINGS_MODULE'] = 'test_django_app.settings'
test_dir = os.path.dirname(__file__)
sys.path.insert(0, test_dir)
from django.test.utils import get_runner
from django.conf import settings
def run():
TestRunner = get_runner(settings)
failures = TestRunner(verbosity=1, interactive=True).run_tests([])
Jump to Line
Something went wrong with that request. Please try again.