• 
      

    Add a special password hasher just for unit tests.

    Review Request #14618 — Created Sept. 16, 2025 and submitted

    Information

    Review Board
    master

    Reviewers

    When running unit tests, we forced password hashing to use
    SHA1PasswordHasher because the standard password hashers by design
    take time to execute. Unfortunately, the SHA1 hasher is deprecated and
    will be removed in Django 5.1. Because we don't actually care anything
    about password security when running unit tests, this change adds a
    special hasher just for the test suite that uses base64, which is even
    faster than SHA1.

    Ran unit tests.

    Summary ID
    Add a special password hasher just for unit tests.
    When running unit tests, we forced password hashing to use `SHA1PasswordHasher` because the standard password hashers by design take time to execute. Unfortunately, the SHA1 hasher is deprecated and will be removed in Django 5.1. Because we don't actually care anything about password security when running unit tests, this change adds a special hasher just for the test suite that uses base64, which is even faster than SHA1. Testing Done: Ran unit tests.
    mktursuyxszynktmtqnkwovyxysznuzr
    maubin
    1. Ship It!
    2. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to master (bf8b41e)