From eeb800aa1e09e942f3d1bd3dc33f14a9016c4854 Mon Sep 17 00:00:00 2001 From: Jacek Tomaszewski Date: Tue, 2 Apr 2013 23:27:43 +0200 Subject: [PATCH] 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). --- runtests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/runtests.py b/runtests.py index 49800cf..a4036bf 100755 --- a/runtests.py +++ b/runtests.py @@ -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(