Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (19 sloc) 767 Bytes
# This file mainly exists to allow python test to work.
import os
import sys
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
os.environ['REUSE_DB'] = '0'
test_dir = os.path.join(os.path.dirname(__file__), 'django_browserid/tests')
sys.path.insert(0, test_dir)
from django.test.utils import get_runner
from django.conf import settings
from import call_command
def runtests():
call_command('syncdb', interactive=False)
call_command('flush', interactive=False)
test_runner = get_runner(settings)
failures = test_runner(interactive=False, failfast=False).run_tests([])
if __name__ == '__main__':