diff --git a/hc/api/tests/__init__.py b/hc/api/tests/__init__.py index e69de29b..ad3f004f 100644 --- a/hc/api/tests/__init__.py +++ b/hc/api/tests/__init__.py @@ -0,0 +1,12 @@ +from django.conf import settings +from django.test.runner import DiscoverRunner + + +class CustomRunner(DiscoverRunner): + + def __init__(self, *args, **kwargs): + # For speed: + settings.PASSWORD_HASHERS = \ + ('django.contrib.auth.hashers.MD5PasswordHasher', ) + + super(CustomRunner, self).__init__(*args, **kwargs) diff --git a/hc/settings.py b/hc/settings.py index e755d55e..0c44bf6f 100644 --- a/hc/settings.py +++ b/hc/settings.py @@ -71,6 +71,8 @@ TEMPLATES = [ ] WSGI_APPLICATION = 'hc.wsgi.application' +TEST_RUNNER = 'hc.api.tests.CustomRunner' + # Default database engine is SQLite. So one can just check out code, # install requirements.txt and do manage.py runserver and it works