Skip to content

Commit

Permalink
Tests: use a faster password hasher (#11462)
Browse files Browse the repository at this point in the history
  • Loading branch information
stsewd authored Jul 10, 2024
1 parent 3456794 commit 945cf56
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions readthedocs/core/fixtures/eric.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"last_login": "2010-08-14T01:51:05+00:00",
"groups": [],
"user_permissions": [],
"password": "pbkdf2_sha256$30000$Vs87OlKZEzCb$nUw1o5pGQw7ff/QhnleSpUOupBaT1DogZrVaoZyQRyc=",
"password": "md5$HLrlTqy6uMMO08qQZ75Z4K$65492930ade63899137c23db46cb2253",
"email": "[email protected]",
"date_joined": "2010-08-14T01:50:58+00:00"
}
Expand All @@ -30,7 +30,7 @@
"last_login": "2010-08-14T01:51:05+00:00",
"groups": [],
"user_permissions": [],
"password": "pbkdf2_sha256$30000$Vs87OlKZEzCb$nUw1o5pGQw7ff/QhnleSpUOupBaT1DogZrVaoZyQRyc=",
"password": "md5$HLrlTqy6uMMO08qQZ75Z4K$65492930ade63899137c23db46cb2253",
"email": "[email protected]",
"date_joined": "2010-08-14T01:50:58+00:00"
}
Expand All @@ -48,7 +48,7 @@
"last_login": "2010-08-14T01:51:05+00:00",
"groups": [],
"user_permissions": [],
"password": "pbkdf2_sha256$30000$Vs87OlKZEzCb$nUw1o5pGQw7ff/QhnleSpUOupBaT1DogZrVaoZyQRyc=",
"password": "md5$HLrlTqy6uMMO08qQZ75Z4K$65492930ade63899137c23db46cb2253",
"email": "[email protected]",
"date_joined": "2010-08-14T01:50:58+00:00"
}
Expand Down
6 changes: 6 additions & 0 deletions readthedocs/settings/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ class CommunityTestSettings(CommunityBaseSettings):
}
}

# Speed up tests by using a fast password hasher.
# https://docs.djangoproject.com/en/5.0/topics/testing/overview/#speeding-up-the-tests.
PASSWORD_HASHERS = [
"django.contrib.auth.hashers.MD5PasswordHasher",
]

@property
def DATABASES(self): # noqa
return {
Expand Down

0 comments on commit 945cf56

Please sign in to comment.