Merge pull request #977 from ostcar/test_password_hasher

Set the test passwort hasher to md5
This commit is contained in:
Oskar Hahn 2013-11-02 15:31:07 -07:00
commit 434f7e6dc4
2 changed files with 7 additions and 0 deletions

View File

@ -9,11 +9,13 @@
"""
from django.test.client import Client
from django.test.utils import override_settings
from openslides.participant.models import Group, User
from openslides.utils.test import TestCase
@override_settings(PASSWORD_HASHERS=('django.contrib.auth.hashers.PBKDF2PasswordHasher',))
class TestUmlautUser(TestCase):
"""
Tests persons with umlauts in there name.

View File

@ -41,3 +41,8 @@ MEDIA_ROOT = os.path.realpath(os.path.dirname(__file__))
# Path to Whoosh search index
# Use RAM storage
HAYSTACK_CONNECTIONS['default']['STORAGE'] = 'ram'
# Use a faster passwort hasher
PASSWORD_HASHERS = (
'django.contrib.auth.hashers.MD5PasswordHasher',
)