Set the test passwort hasher to md5

This commit is contained in:
Oskar Hahn 2013-10-31 09:43:19 +01:00
parent c5827e0612
commit a50d2dde39
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',
)