linguaielts-api / backend /tests /test_security.py
AnhviNguyen
huy hieu + notification
1c2ed83
Raw
History Blame Contribute Delete
271 Bytes
"""Tests for password hashing."""
from app.core.security import hash_password, verify_password
def test_hash_and_verify_password():
hashed = hash_password("secret123")
assert verify_password("secret123", hashed)
assert not verify_password("wrong", hashed)