4
from os.path import dirname, abspath
6
from django.conf import settings
8
if not settings.configured:
10
DATABASE_ENGINE='sqlite3',
12
'django.contrib.auth',
13
'django.contrib.contenttypes',
18
from django.test.simple import run_tests
21
def runtests(*test_args):
23
test_args = ['djangoratings']
24
parent = dirname(abspath(__file__))
25
sys.path.insert(0, parent)
26
failures = run_tests(test_args, verbosity=1, interactive=True)
30
if __name__ == '__main__':
31
runtests(*sys.argv[1:])