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
This commit is contained in:
Ole Laursen 2015-09-23 09:49:48 +00:00
parent 58e116cc0a
commit 99a9cb5569

View file

@ -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: