Spaces:
Paused
Paused
| """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) | |