changeset 764:87490b87c076

Add settings during test to speed things up & disable logging.
author Brian Neal <bgneal@gmail.com>
date Sun, 19 Jan 2014 17:22:49 -0600
parents 20a3bf7a6370
children f01bc9500aef
files sg101/settings/test.py
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sg101/settings/test.py	Sun Jan 19 11:25:45 2014 -0600
+++ b/sg101/settings/test.py	Sun Jan 19 17:22:49 2014 -0600
@@ -2,8 +2,19 @@
 Settings to use when running tests. Uses sqlite for speed.
 
 """
+import logging
+
 from sg101.settings.base import *
 
+
+# Speed up tests:
+DEBUG = False
+TEMPLATE_DEBUG = False
+logging.disable(logging.CRITICAL)
+PASSWORD_HASHERS = [
+    'django.contrib.auth.hashers.MD5PasswordHasher',
+]
+
 # Use a different database in Redis for tests
 REDIS_DB = 14
 QUEUE_REDIS_DB = 14