From 99a9cb5569b157f143d3095fb4b75371bbc082a6 Mon Sep 17 00:00:00 2001 From: Ole Laursen Date: Wed, 23 Sep 2015 09:49:48 +0000 Subject: [PATCH] Summary: Switch to a much faster password hasher when running unit tests, the default, more secure one took ~20% of the test time - Legacy-Id: 10097 --- ietf/utils/test_runner.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ietf/utils/test_runner.py b/ietf/utils/test_runner.py index 5ff91138c..6e87775fc 100644 --- a/ietf/utils/test_runner.py +++ b/ietf/utils/test_runner.py @@ -322,6 +322,8 @@ class IetfTestRunner(DiscoverRunner): ietf.utils.mail.test_mode = True ietf.utils.mail.SMTP_ADDR['ip4'] = '127.0.0.1' ietf.utils.mail.SMTP_ADDR['port'] = 2025 + # switch to a much faster hasher + settings.PASSWORD_HASHERS = ( 'django.contrib.auth.hashers.MD5PasswordHasher', ) # if self.check_coverage: with codecs.open(self.coverage_file, encoding='utf-8') as file: