Skip to content

Commit 99a9cb5

Browse files
committed
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
1 parent 58e116c commit 99a9cb5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ietf/utils/test_runner.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,8 @@ def setup_test_environment(self, **kwargs):
322322
ietf.utils.mail.test_mode = True
323323
ietf.utils.mail.SMTP_ADDR['ip4'] = '127.0.0.1'
324324
ietf.utils.mail.SMTP_ADDR['port'] = 2025
325+
# switch to a much faster hasher
326+
settings.PASSWORD_HASHERS = ( 'django.contrib.auth.hashers.MD5PasswordHasher', )
325327
#
326328
if self.check_coverage:
327329
with codecs.open(self.coverage_file, encoding='utf-8') as file:

0 commit comments

Comments
 (0)