Skip to content

Commit

Permalink
No longer create tables for unnecessary applications when running the…
Browse files Browse the repository at this point in the history
… GeoDjango test suite.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10498 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
jbronn committed Apr 10, 2009
1 parent b366bcc commit f146132
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions django/contrib/gis/tests/__init__.py
Expand Up @@ -72,19 +72,11 @@ def run_gis_tests(test_labels, **kwargs):
old_installed = settings.INSTALLED_APPS
old_root_urlconf = settings.ROOT_URLCONF

# Based on ALWAYS_INSTALLED_APPS from django test suite --
# this prevents us from creating tables in our test database
# from locally installed apps.
new_installed = ['django.contrib.contenttypes',
'django.contrib.auth',
'django.contrib.sites',
# Overridding the INSTALLED_APPS with only what we need,
# to prevent unnecessary database table creation.
new_installed = ['django.contrib.sites',
'django.contrib.sitemaps',
'django.contrib.flatpages',
'django.contrib.gis',
'django.contrib.redirects',
'django.contrib.sessions',
'django.contrib.comments',
'django.contrib.admin',
]

# Setting the URLs.
Expand Down

0 comments on commit f146132

Please sign in to comment.