intra_max_bot/tests/test_security.py
2026-03-19 16:47:49 +03:00

10 lines
292 B
Python

from app.security import hash_password, verify_password
def test_password_hash_roundtrip():
password = "s3cret"
hashed = hash_password(password)
assert hashed != password
assert verify_password(password, hashed) is True
assert verify_password("wrong", hashed) is False