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', +)