Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (32 sloc) 1.132 kb
# from http://www.travisswicegood.com/2010/01/17/django-virtualenv-pip-and-fabric/
from django.conf import settings
from django.core.management import call_command
def main():
# Dynamically configure the Django settings with the minimum necessary to
# get Django running tests
settings.configure(
INSTALLED_APPS=[
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.admin',
'django.contrib.sessions',
'django_extensions',
'django_extensions.tests',
],
# Django replaces this, but it still wants it. *shrugs*
DATABASE_ENGINE = 'django.db.backends.sqlite3',
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
}
},
MEDIA_ROOT = '/tmp/django_extensions_test_media/',
MEDIA_PATH = '/media/',
ROOT_URLCONF = 'django_extensions.tests.urls',
DEBUG = True,
TEMPLATE_DEBUG = True
)
# Fire off the tests
call_command('test', 'django_extensions')
if __name__ == '__main__':
main()
Jump to Line
Something went wrong with that request. Please try again.