Commit f0c82b6b by Carl Meyer Committed by Alex Gaynor

"python setup.py test" works

parent 5d556112
#!/usr/bin/env python
from os.path import dirname, abspath
import sys
from django.conf import settings as django_settings
if not django_settings.configured:
django_settings.configure(
DATABASE_ENGINE='sqlite3',
INSTALLED_APPS=(
'django.contrib.contenttypes',
'taggit',
'taggit.tests',
)
)
def runtests(*test_args):
if not test_args:
test_args = ['tests']
parent = dirname(abspath(__file__))
sys.path.insert(0, parent)
from django.test.simple import run_tests
failures = run_tests(test_args, verbosity=1, interactive=True)
sys.exit(failures)
if __name__ == '__main__':
runtests(*sys.argv[1:])
......@@ -26,5 +26,6 @@ setup(
'Programming Language :: Python',
'Framework :: Django',
],
test_suite='runtests.runtests'
)
DATABASE_ENGINE = 'sqlite3'
INSTALLED_APPS = [
'django.contrib.contenttypes',
'taggit',
'taggit.tests',
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment