changing settings to run test faster
@@ -2,6 +2,8 @@ from __future__ import absolute_import, unicode_literals
#TEST_RUNNER='django_nose.NoseTestSuiteRunner'
TEST_RUNNER = 'hs_core.tests.runner.CustomTestSuiteRunner'
+import sys
+import logging
import os
import importlib
@@ -567,3 +569,23 @@ TRACKING_USER_FIELDS = ["username", "email", "first_name", "last_name"]
# info django that a reverse proxy sever (nginx) is handling ssl/https for it
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
+
+class DisableMigrations(object):
+
+ def __contains__(self, item):
+ return True
+
+ def __getitem__(self, item):
+ return "notmigrations"
+
+
+TESTS_IN_PROGRESS = False
+if 'test' in sys.argv[1:] or 'jenkins' in sys.argv[1:]:
+ logging.disable(logging.CRITICAL)
+ PASSWORD_HASHERS = (
+ 'django.contrib.auth.hashers.MD5PasswordHasher',
+ )
+ DEBUG = False
+ TEMPLATE_DEBUG = False
+ TESTS_IN_PROGRESS = True
+ MIGRATION_MODULES = DisableMigrations()
\ No newline at end of file
