email template
This commit is contained in:
parent
ebbb582e99
commit
2451045693
15 changed files with 447 additions and 156 deletions
8
backend/tests/test_member_invitations.py
Normal file
8
backend/tests/test_member_invitations.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import hashlib
|
||||
|
||||
from app.services.member_invitations import hash_invite_token
|
||||
|
||||
|
||||
def test_hash_invite_token_is_sha256_hex():
|
||||
token = "example-token"
|
||||
assert hash_invite_token(token) == hashlib.sha256(token.encode("utf-8")).hexdigest()
|
||||
Loading…
Add table
Add a link
Reference in a new issue