Optimize testrunner.

Since LANGUAGES setting is overridden in tests, there is no need
to use them all in pre-test database creation (because database
would be rebuild anyway and only time is wasted).
This commit is contained in:
Jacek Tomaszewski 2013-04-02 23:27:43 +02:00
parent fef3109e60
commit eeb800aa1e

View file

@ -5,6 +5,7 @@ import sys
from django.conf import settings
from django.core.management import call_command
def runtests():
if not settings.configured:
# Choose database for settings
@ -38,6 +39,9 @@ def runtests():
'modeltranslation',
),
ROOT_URLCONF = None, # tests override urlconf, but it still needs to be defined
LANGUAGES = (
('en', 'English'),
),
)
failures = call_command(