Commit 39487e77 by Carl Meyer Committed by Alex Gaynor

cleanup

parent f0c82b6b
#!/usr/bin/env python #!/usr/bin/env python
import sys
from os.path import dirname, abspath from os.path import dirname, abspath
import sys
from django.conf import settings as django_settings from django.conf import settings
if not django_settings.configured: if not settings.configured:
django_settings.configure( settings.configure(
DATABASE_ENGINE='sqlite3', DATABASE_ENGINE='sqlite3',
INSTALLED_APPS=( INSTALLED_APPS=[
'django.contrib.contenttypes', 'django.contrib.contenttypes',
'taggit', 'taggit',
'taggit.tests', 'taggit.tests',
) ]
) )
from django.test.simple import run_tests
def runtests(*test_args): def runtests(*test_args):
if not test_args: if not test_args:
test_args = ['tests'] test_args = ['tests']
parent = dirname(abspath(__file__)) parent = dirname(abspath(__file__))
sys.path.insert(0, parent) sys.path.insert(0, parent)
from django.test.simple import run_tests
failures = run_tests(test_args, verbosity=1, interactive=True) failures = run_tests(test_args, verbosity=1, interactive=True)
sys.exit(failures) sys.exit(failures)
......
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