From a50d2dde39b82dbee1b1ae266b45a65e5405eba2 Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Thu, 31 Oct 2013 09:43:19 +0100 Subject: [PATCH] Set the test passwort hasher to md5 --- tests/participant/test_umlaut_user.py | 2 ++ tests/settings.py | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/tests/participant/test_umlaut_user.py b/tests/participant/test_umlaut_user.py index e13ffbc88..7128e0eb4 100644 --- a/tests/participant/test_umlaut_user.py +++ b/tests/participant/test_umlaut_user.py @@ -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. diff --git a/tests/settings.py b/tests/settings.py index 598299875..238a91e36 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -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', +)