mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +00:00
remove get_apps() call. the installed apps don't need to be loaded here, the testsuiterunner will take care of that
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2010/app-loading@13385 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
4e141dcaba
commit
c362007099
@ -114,11 +114,9 @@ def django_tests(verbosity, interactive, failfast, test_labels):
|
|||||||
# in our tests.
|
# in our tests.
|
||||||
settings.MANAGERS = ("admin@djangoproject.com",)
|
settings.MANAGERS = ("admin@djangoproject.com",)
|
||||||
|
|
||||||
# Load all the ALWAYS_INSTALLED_APPS.
|
# This import statement is intentionally delayed until after we
|
||||||
# (This import statement is intentionally delayed until after we
|
# access settings because of the USE_I18N dependency.
|
||||||
# access settings because of the USE_I18N dependency.)
|
from django.db.models.loading import load_app
|
||||||
from django.db.models.loading import get_apps, load_app
|
|
||||||
get_apps()
|
|
||||||
|
|
||||||
# Load all the test model apps.
|
# Load all the test model apps.
|
||||||
for model_dir, model_name in get_test_models():
|
for model_dir, model_name in get_test_models():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user