8 lines
241 B
Python
8 lines
241 B
Python
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()
|